scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

memset.3 (473B)


      1 .TH memset 3
      2 .SH NAME
      3 memset - set bytes in memory
      4 .SH SYNOPSIS
      5 #include <string.h>
      6 
      7 void *memset(void *s, int c, size_t n)
      8 .SH DESCRIPTION
      9 The
     10 .BR memset ()
     11 function copies the value of
     12 .I c
     13 (converted to an unsigned char)
     14 into each of the first
     15 .I n
     16 characters of the object
     17 pointed to by
     18 .IR s .
     19 .PP
     20 The function does not modify
     21 .I s
     22 if
     23 .I n
     24 is equal to 0.
     25 .SH RETURN VALUE
     26 The function shall return the value of
     27 .IR s .
     28 .SH STANDARDS
     29 ISO/IEC 9899:1999 Section 7.21.6.1