xref: /netbsd-src/share/man/man9/memset.9 (revision 075022b349321510ad14036d70908681ed02f117)
1e7eca1a1Sperry.\" Copyright (c) 1990, 1991, 1993
2e7eca1a1Sperry.\"	The Regents of the University of California.  All rights reserved.
3e7eca1a1Sperry.\"
4e7eca1a1Sperry.\" This code is derived from software contributed to Berkeley by
5e7eca1a1Sperry.\" Chris Torek and the American National Standards Committee X3,
6e7eca1a1Sperry.\" on Information Processing Systems.
7e7eca1a1Sperry.\"
8e7eca1a1Sperry.\" Redistribution and use in source and binary forms, with or without
9e7eca1a1Sperry.\" modification, are permitted provided that the following conditions
10e7eca1a1Sperry.\" are met:
11e7eca1a1Sperry.\" 1. Redistributions of source code must retain the above copyright
12e7eca1a1Sperry.\"    notice, this list of conditions and the following disclaimer.
13e7eca1a1Sperry.\" 2. Redistributions in binary form must reproduce the above copyright
14e7eca1a1Sperry.\"    notice, this list of conditions and the following disclaimer in the
15e7eca1a1Sperry.\"    documentation and/or other materials provided with the distribution.
16*075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors
17e7eca1a1Sperry.\"    may be used to endorse or promote products derived from this software
18e7eca1a1Sperry.\"    without specific prior written permission.
19e7eca1a1Sperry.\"
20e7eca1a1Sperry.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21e7eca1a1Sperry.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22e7eca1a1Sperry.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23e7eca1a1Sperry.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24e7eca1a1Sperry.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25e7eca1a1Sperry.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26e7eca1a1Sperry.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27e7eca1a1Sperry.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28e7eca1a1Sperry.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29e7eca1a1Sperry.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30e7eca1a1Sperry.\" SUCH DAMAGE.
31e7eca1a1Sperry.\"
32e7eca1a1Sperry.\"     from: @(#)memset.3	8.1 (Berkeley) 6/4/93
33*075022b3Sagc.\"	$NetBSD: memset.9,v 1.5 2003/08/07 10:31:30 agc Exp $
34e7eca1a1Sperry.\"
35e7eca1a1Sperry.Dd July 7, 2001
36e7eca1a1Sperry.Dt MEMSET 9
37e7eca1a1Sperry.Os
38e7eca1a1Sperry.Sh NAME
39e7eca1a1Sperry.Nm memset
40e7eca1a1Sperry.Nd write a byte to byte string
41e7eca1a1Sperry.Sh SYNOPSIS
42472351e1Swiz.In sys/systm.h
43e7eca1a1Sperry.Ft void *
44e7eca1a1Sperry.Fn memset "void *b" "int c" "size_t len"
45e7eca1a1Sperry.Sh DESCRIPTION
46e7eca1a1SperryThe
47e7eca1a1Sperry.Fn memset
48e7eca1a1Sperryfunction
49e7eca1a1Sperrywrites
50e7eca1a1Sperry.Fa len
51e7eca1a1Sperrybytes of value
52e7eca1a1Sperry.Fa c
53e7eca1a1Sperry(converted to an unsigned char) to the string
54e7eca1a1Sperry.Fa b .
55e7eca1a1Sperry.Sh RETURN VALUES
56e7eca1a1SperryThe
57e7eca1a1Sperry.Fn memset
58e7eca1a1Sperryfunction
59e7eca1a1Sperryreturns the original value of
60e7eca1a1Sperry.Fa b .
61e7eca1a1Sperry.\" .Sh SEE ALSO
62e7eca1a1Sperry.Sh STANDARDS
63e7eca1a1SperryThe
64e7eca1a1Sperry.Fn memset
65e7eca1a1Sperryfunction
66e7eca1a1Sperryconforms to
67e7eca1a1Sperry.St -ansiC .
68