Name
memset function — Fills memory with a byte
Synopsis
void* memset(void* s, int c, size_t n)
The memset
function fills
the array s
with n
copies of c
(converted to unsigned
char
). The return value is s
.
See Also
memcpy function,
fill_n
in <algorithm>
, wmemset
in <cwchar>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.