MEMSET(3) Library Functions Manual MEMSET(3)

memsetfill a byte string with a byte value

Standard C Library (libc, -lc)

#include <string.h>

void *
memset(void *b, int c, size_t len);

The () function writes len bytes of value c (converted to an unsigned char) to the string b.

The memset() function returns its first argument.

bzero(3), memset_pattern(3), memset_s.3, swab(3), wmemset(3)

The memset() function conforms to ISO/IEC 9899:1990 (“ISO C90”).

June 4, 1993 macOS 14.6