![]() |
![]()
| ![]() |
![]()
NAMEmemfill - fill memory area with pattern SYNOPSIS#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 overlapping. RETURN VALUEmemfill returns its first argument. EXAMPLETo initialize an integer array one might do the following.
SEE ALSOpublib(3) AUTHORLars Wirzenius (lars.wirzenius@helsinki.fi)
|