1MEMSET(3)                  Linux Programmer's Manual                 MEMSET(3)
2
3
4

NAME

6       memset - fill memory with a constant byte
7

SYNOPSIS

9       #include <string.h>
10
11       void *memset(void *s, int c, size_t n);
12

DESCRIPTION

14       The  memset()  function  fills  the  first  n  bytes of the memory area
15       pointed to by s with the constant byte c.
16

RETURN VALUE

18       The memset() function returns a pointer to the memory area s.
19

ATTRIBUTES

21       For  an  explanation  of  the  terms  used   in   this   section,   see
22       attributes(7).
23
24       ┌──────────┬───────────────┬─────────┐
25Interface Attribute     Value   
26       ├──────────┼───────────────┼─────────┤
27memset()  │ Thread safety │ MT-Safe │
28       └──────────┴───────────────┴─────────┘

CONFORMING TO

30       POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
31

SEE ALSO

33       bstring(3), bzero(3), swab(3), wmemset(3)
34

COLOPHON

36       This  page  is  part of release 5.07 of the Linux man-pages project.  A
37       description of the project, information about reporting bugs,  and  the
38       latest     version     of     this    page,    can    be    found    at
39       https://www.kernel.org/doc/man-pages/.
40
41
42
43GNU                               2017-03-13                         MEMSET(3)
Impressum