|
NAMEmemset —
write a byte to byte string
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <string.h>
void *
errno_t
DESCRIPTIONThememset () function writes len
bytes of value c (converted to an
unsigned char) to the string dest.
Undefined behaviour from memset (), resulting from
storage overflow, will occur if len is greater than the
length of the dest buffer. The behaviour is also
undefined if dest is an invalid pointer.
The RETURN VALUESThememset () function returns its first argument. The
memset_s () function returns zero on success, non-zero
on error.
SEE ALSObzero(3), explicit_bzero(3), set_constraint_handler_s(3), swab(3), wmemset(3)STANDARDSThememset () function conforms to
ISO/IEC 9899:1990 (“ISO C90”).
memset_s () conforms to ISO/IEC
9899:2011 (“ISO C11”) K.3.7.4.1.
Visit the GSP FreeBSD Man Page Interface. |