Make this i386-compatible; massive clean-up.
[unix-history] / usr / src / lib / libc / string / memset.3
CommitLineData
c613d531
KB
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek.
6.\"
7.\" %sccs.include.redist.man%
8.\"
9.\" @(#)memset.3 5.1 (Berkeley) %G%
10.\"
11.TH MEMSET 3 ""
12.UC 7
13.SH NAME
14memset \- write a byte to byte string
15.SH SYNOPSIS
16.nf
17.ft B
18#include <string.h>
19
20void *
21memset(void *b, int c, size_t len);
22.ft R
23.nf
24.SH DESCRIPTION
25.B Memset
26writes
27.I len
28bytes of value
29.I c
30(converted to an unsigned char) to the string
31.IR b .
32.SH SEE ALSO
33bzero(3), swab(3)
34.SH STANDARDS
35.B Memset
36conforms to ANSI X3.159-1989 (``ANSI C'').