]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3p/memset.3p
Import of man-pages 1.70
[thirdparty/man-pages.git] / man3p / memset.3p
1 .\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
2 .TH "MEMSET" P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
3 .\" memset
4 .SH NAME
5 memset \- set bytes in memory
6 .SH SYNOPSIS
7 .LP
8 \fB#include <string.h>
9 .br
10 .sp
11 void *memset(void *\fP\fIs\fP\fB, int\fP \fIc\fP\fB, size_t\fP \fIn\fP\fB);
12 .br
13 \fP
14 .SH DESCRIPTION
15 .LP
16 The \fImemset\fP() function shall copy \fIc\fP (converted to an \fBunsigned
17 char\fP) into each of the first \fIn\fP bytes of
18 the object pointed to by \fIs\fP.
19 .SH RETURN VALUE
20 .LP
21 The \fImemset\fP() function shall return \fIs\fP; no return value
22 is reserved to indicate an error.
23 .SH ERRORS
24 .LP
25 No errors are defined.
26 .LP
27 \fIThe following sections are informative.\fP
28 .SH EXAMPLES
29 .LP
30 None.
31 .SH APPLICATION USAGE
32 .LP
33 None.
34 .SH RATIONALE
35 .LP
36 None.
37 .SH FUTURE DIRECTIONS
38 .LP
39 None.
40 .SH SEE ALSO
41 .LP
42 The Base Definitions volume of IEEE\ Std\ 1003.1-2001, \fI<string.h>\fP
43 .SH COPYRIGHT
44 Portions of this text are reprinted and reproduced in electronic form
45 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
46 -- Portable Operating System Interface (POSIX), The Open Group Base
47 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
48 Electrical and Electronics Engineers, Inc and The Open Group. In the
49 event of any discrepancy between this version and the original IEEE and
50 The Open Group Standard, the original IEEE and The Open Group Standard
51 is the referee document. The original Standard can be obtained online at
52 http://www.opengroup.org/unix/online.html .