Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

memset - Initialize memory area

&pagelevel(4)&pagelevel

Definition   

#include <string.h>

void *memset(void *s, int c, size_t n);

memset copies the value of character c to the first n bytes of the memory area to which s points.

Return val.

Pointer to the memory area s.

Notes

This function is suitable for processing character arrays containing the null byte (\0), since memset does not interpret the null byte as the ’end of text’.

memset does not check whether data in result area s is in danger of being overwritten.

See also

memchr, memcmp, memcpy