MEMSET(3) NetBSD Library Functions Manual MEMSET(3)
memset -- write a byte to byte string
Standard C Library (libc, -lc)
#include <string.h> void * memset(void *b, int c, size_t len);
The memset() function writes len bytes of value c (converted to an unsigned char) to the string b.
The memset() function returns the original value of b. Note that the compiler may optimize away a call to memset() if it can prove that the string will not be used by the program again, for example if it is allocated on the stack and about to go out of scope. If you want to guarantee that zeros are written to memory, for example to sani- tize a buffer holding a cryptographic secret, use explicit_memset(3).
bzero(3), explicit_memset(3), swab(3)
The memset() function conforms to ANSI X3.159-1989 (``ANSI C89''). NetBSD 9.0 June 23, 2013 NetBSD 9.0
You can also request any man page by name and (optionally) by section: