scc

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

memset.3 (504B)


      1 .TH memset 3
      2 .SH NAME
      3 memset - fill memory with a constant byte
      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 fills the first
     12 .I n
     13 bytes of the memory block pointed to by
     14 .I s
     15 with the constant byte obtained by converting
     16 .I c
     17 to unsigned char.
     18 .PP
     19 When
     20 .I n
     21 is zero, the memory block is left unmodified.
     22 .SH RETURN VALUE
     23 The
     24 .BR memset ()
     25 function returns its first argument,
     26 .IR s .
     27 .SH STANDARDS
     28 ISO/IEC 9899:1999 Section 7.21.6.1