Query: memfill
OS: debian
Section: 3pub
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MEMFILL(3pub) C Programmer's Manual MEMFILL(3pub)NAMEmemfill - fill memory area with patternSYNOPSIS#include <publib.h> void *memfill(void *buf, size_t size, const void *pat, size_t patsize);DESCRIPTIONmemfill copies consecutive bytes from the pattern pat to consecutive bytes in the memory area buf, wrapping around in pat when its end is reached. patsize is the size of the pattern, size is the size of the memory area. The pattern and the memory area must not be overlap- ping.RETURN VALUEmemfill returns its first argument.EXAMPLETo initialize an integer array one might do the following. int temp, array[1024]; temp = 1234; memfill(array, sizeof(array), &temp, sizeof(temp));SEE ALSOpublib(3)AUTHORLars Wirzenius (lars.wirzenius@helsinki.fi) Publib C Programmer's Manual MEMFILL(3pub)
Related Man Pages |
---|
xfree(3pub) - debian |
memshuffle(3pub) - debian |
xmalloc(3pub) - debian |
xfree(3pub) - opensolaris |
xfree(3pub) - linux |
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
One instance of comparing grep and awk |
Find columns in a file based on header and print to new file |
Weird 'find' results |