xref: /csrg-svn/lib/libc/string/memset.3 (revision 48351)
1*48351Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California.
241962Sbostic.\" All rights reserved.
341962Sbostic.\"
441962Sbostic.\" This code is derived from software contributed to Berkeley by
541962Sbostic.\" Chris Torek.
641962Sbostic.\" %sccs.include.redist.man%
741962Sbostic.\"
8*48351Scael.\"     @(#)memset.3	5.3 (Berkeley) 04/19/91
941962Sbostic.\"
10*48351Scael.Dd
11*48351Scael.Dt MEMSET 3
12*48351Scael.Os
13*48351Scael.Sh NAME
14*48351Scael.Nm memset
15*48351Scael.Nd write a byte to byte string
16*48351Scael.Sh SYNOPSIS
17*48351Scael.Fd #include <string.h>
18*48351Scael.Ft void *
19*48351Scael.Fn memset "void *b" "int c" "size_t len"
20*48351Scael.Sh DESCRIPTION
21*48351ScaelThe
22*48351Scael.Fn memset
23*48351Scaelfunction
2441962Sbosticwrites
25*48351Scael.Fa len
2641962Sbosticbytes of value
27*48351Scael.Fa c
2841962Sbostic(converted to an unsigned char) to the string
29*48351Scael.Fa b .
30*48351Scael.Sh SEE ALSO
31*48351Scael.Xr bzero 3 ,
32*48351Scael.Xr swab 3
33*48351Scael.Sh STANDARDS
34*48351ScaelThe
35*48351Scael.Fn memset
36*48351Scaelfunction
37*48351Scaelconforms to
38*48351Scael.St -ansiC .
39