xref: /netbsd-src/share/man/man9/bzero.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.
6e7eca1a1Sperry.\"
7e7eca1a1Sperry.\" Redistribution and use in source and binary forms, with or without
8e7eca1a1Sperry.\" modification, are permitted provided that the following conditions
9e7eca1a1Sperry.\" are met:
10e7eca1a1Sperry.\" 1. Redistributions of source code must retain the above copyright
11e7eca1a1Sperry.\"    notice, this list of conditions and the following disclaimer.
12e7eca1a1Sperry.\" 2. Redistributions in binary form must reproduce the above copyright
13e7eca1a1Sperry.\"    notice, this list of conditions and the following disclaimer in the
14e7eca1a1Sperry.\"    documentation and/or other materials provided with the distribution.
15*075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors
16e7eca1a1Sperry.\"    may be used to endorse or promote products derived from this software
17e7eca1a1Sperry.\"    without specific prior written permission.
18e7eca1a1Sperry.\"
19e7eca1a1Sperry.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20e7eca1a1Sperry.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21e7eca1a1Sperry.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22e7eca1a1Sperry.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23e7eca1a1Sperry.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24e7eca1a1Sperry.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25e7eca1a1Sperry.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26e7eca1a1Sperry.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27e7eca1a1Sperry.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28e7eca1a1Sperry.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29e7eca1a1Sperry.\" SUCH DAMAGE.
30e7eca1a1Sperry.\"
31e7eca1a1Sperry.\"     from: @(#)bzero.3	8.1 (Berkeley) 6/4/93
32*075022b3Sagc.\"	$NetBSD: bzero.9,v 1.7 2003/08/07 10:31:30 agc Exp $
33e7eca1a1Sperry.\"
34e7eca1a1Sperry.Dd July 7, 2001
35e7eca1a1Sperry.Dt BZERO 9
36e7eca1a1Sperry.Os
37e7eca1a1Sperry.Sh NAME
38e7eca1a1Sperry.Nm bzero
39e7eca1a1Sperry.Nd write zeroes to a byte string
40e7eca1a1Sperry.Sh SYNOPSIS
41472351e1Swiz.In sys/systm.h
42e7eca1a1Sperry.Ft void
43e7eca1a1Sperry.Fn bzero "void *b" "size_t len"
44e7eca1a1Sperry.Sh DESCRIPTION
45e7eca1a1Sperry.Bf -symbolic
46e7eca1a1SperryThe
47e7eca1a1Sperry.Fn bzero
48e7eca1a1Sperryinterface is obsolete.
49e7eca1a1SperryDo not add new code using it.
50e7eca1a1SperryIt will soon be purged.
51e7eca1a1SperryUse
52e7eca1a1Sperry.Xr memset 9
53e7eca1a1Sperryinstead.
54e7eca1a1Sperry(The
55e7eca1a1Sperry.Fn bzero
56e7eca1a1Sperryfunction is now a macro for
57e7eca1a1Sperry.Xr memset 9 . )
58e7eca1a1Sperry.Ef
59e7eca1a1Sperry.Pp
60e7eca1a1SperryThe
61e7eca1a1Sperry.Fn bzero
62e7eca1a1Sperryfunction
63e7eca1a1Sperrywrites
64e7eca1a1Sperry.Fa len
65e7eca1a1Sperryzero bytes to the string
66e7eca1a1Sperry.Fa b .
67e7eca1a1SperryIf
68e7eca1a1Sperry.Fa len
69e7eca1a1Sperryis zero,
70e7eca1a1Sperry.Fn bzero
71e7eca1a1Sperrydoes nothing.
72e7eca1a1Sperry.Sh SEE ALSO
73e6895901Swiz.Xr memset 9
74