Fills memory with the number of characters specified by length with a specified value.
#include <string.h> void *memset ( void *s, int c, size_t length);
(IN) Points to the object.
(IN) Specifies the character.
(IN) Specifies the number of characters to copy.
Returns a pointer to s.
The memset function copies c (converted to an unsigned char) into each of the length bytes of the object pointed to by s.
Because allocated memory can contain discarded data, this function allows you to set the memory to a known value.