shithub: scc

ref: 94f23734015424515144b54f0a9f9d6c9d2f34c2
dir: /doc/man3/memset.3/

View raw version
.TH memset 3
.SH NAME
memset - set bytes in memory
.SH SYNOPSIS
#include <string.h>

void *memset(void *s, int c, size_t n)
.SH DESCRIPTION
The
.BR memset ()
function copies the value of
.I c
(converted to an unsigned char)
into each of the first
.I n
characters of the object
pointed to by
.IR s .
.PP
The function does not modify
.I s
if
.I n
is equal to 0.
.SH RETURN VALUE
The function shall return the value of
.IR s .
.SH STANDARDS
ISO/IEC 9899:1999 Section 7.21.6.1