xref: /csrg-svn/lib/libc/string/memset.3 (revision 50312)
148351Scael.\" 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
5*50312Sbostic.\" Chris Torek and the American National Standards Committee X3,
6*50312Sbostic.\" on Information Processing Systems.
7*50312Sbostic.\"
841962Sbostic.\" %sccs.include.redist.man%
941962Sbostic.\"
10*50312Sbostic.\"     @(#)memset.3	5.4 (Berkeley) 06/29/91
1141962Sbostic.\"
1248351Scael.Dd
1348351Scael.Dt MEMSET 3
1448351Scael.Os
1548351Scael.Sh NAME
1648351Scael.Nm memset
1748351Scael.Nd write a byte to byte string
1848351Scael.Sh SYNOPSIS
1948351Scael.Fd #include <string.h>
2048351Scael.Ft void *
2148351Scael.Fn memset "void *b" "int c" "size_t len"
2248351Scael.Sh DESCRIPTION
2348351ScaelThe
2448351Scael.Fn memset
2548351Scaelfunction
2641962Sbosticwrites
2748351Scael.Fa len
2841962Sbosticbytes of value
2948351Scael.Fa c
3041962Sbostic(converted to an unsigned char) to the string
3148351Scael.Fa b .
3248351Scael.Sh SEE ALSO
3348351Scael.Xr bzero 3 ,
3448351Scael.Xr swab 3
3548351Scael.Sh STANDARDS
3648351ScaelThe
3748351Scael.Fn memset
3848351Scaelfunction
3948351Scaelconforms to
4048351Scael.St -ansiC .
41