Clear the contents of a block of memory.
Compatibility:This function is compatible with the following targets:
|
|
#include <string.h>
void *memset(void *dest, int c, size_t n);Parameters:
Parameters for this facility are:
The memset() function assigns c to the first n characters of the item pointed to by dest.
memset() returns the value of dest.
Refer to "Example of memchr() usage." .