Rechercher une page de manuel
memfill.3pub
Langue: en
Version: C Programmer's Manual (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
memfill - fill memory area with patternSYNOPSIS
#include <publib.h> void *memfill(void *buf, size_t size, const void *pat, size_t patsize);
DESCRIPTION
memfill 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 VALUE
memfill returns its first argument.EXAMPLE
To initialize an integer array one might do the following.int temp, array[1024]; temp = 1234; memfill(array, sizeof(array), &temp, sizeof(temp));
SEE ALSO
publib(3)AUTHOR
Lars Wirzenius (lars.wirzenius@helsinki.fi)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre