xref: /original-bsd/lib/libc/string/memset.3 (revision 3b6250d9)
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.4 (Berkeley) 06/29/91
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 SEE ALSO
33.Xr bzero 3 ,
34.Xr swab 3
35.Sh STANDARDS
36The
37.Fn memset
38function
39conforms to
40.St -ansiC .
41