2 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\" References consulted:
7 .\" Linux libc source code
8 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
10 .\" Modified Sat Jul 24 18:49:23 1993 by Rik Faith (faith@cs.unc.edu)
11 .TH memset 3 (date) "Linux man-pages (unreleased)"
13 memset \- fill memory with a constant byte
16 .RI ( libc ", " \-lc )
19 .B #include <string.h>
21 .BI "void *memset(void " s [. n "], int " c ", size_t " n );
26 function fills the first
29 memory area pointed to by
31 with the constant byte
36 function returns a pointer to the memory area
39 For an explanation of the terms used in this section, see
47 Interface Attribute Value
50 T} Thread safety MT-Safe
58 POSIX.1-2001, C89, SVr4, 4.3BSD.