xref: /original-bsd/lib/libc/string/memset.3 (revision 3839ed90)
1.\" Copyright (c) 1990, 1991 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 and the American National Standards Committee X3,
6.\" on Information Processing Systems.
7.\"
8.\" %sccs.include.redist.man%
9.\"
10.\"     @(#)memset.3	5.5 (Berkeley) 07/12/92
11.\"
12.Dd
13.Dt MEMSET 3
14.Os
15.Sh NAME
16.Nm memset
17.Nd write a byte to byte string
18.Sh SYNOPSIS
19.Fd #include <string.h>
20.Ft void *
21.Fn memset "void *b" "int c" "size_t len"
22.Sh DESCRIPTION
23The
24.Fn memset
25function
26writes
27.Fa len
28bytes of value
29.Fa c
30(converted to an unsigned char) to the string
31.Fa b .
32.Sh RETURNS
33The
34.Fn memset
35function returns its first argument.
36.Sh SEE ALSO
37.Xr bzero 3 ,
38.Xr swab 3
39.Sh STANDARDS
40The
41.Fn memset
42function
43conforms to
44.St -ansiC .
45