Synopsis
#include <string.h>
void *memset(void *s, int c, size_t n);
Description

memset copies the value of c (converted to an unsigned char) into each of the first n characters of the object pointed to by s.

memset returns the value of s.

Portability

memset conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).