cc [ flag... ] file... –lmlib [ library... ] #include <mlib.h> void *mlib_memset(void *s, mlib_s32 c, size_t n);
The mlib_memset() function sets the first n bytes in memory area s to the value of c (converted to an unsigned char). It returns s.
This function is a wrapper of the standard C function memset().
The function takes the following arguments:
Pointer to the destination.
Value to set.
Number of bytes to be set.
The function returns a pointer to the destination.
See attributes(5) for descriptions of the following attributes:
|
mlib_memcpy(3MLIB), mlib_memmove(3MLIB), memory(3C), attributes(5)