xref: /original-bsd/lib/libc/string/bzero.3 (revision 1cfaf997)
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.
6.\" %sccs.include.redist.man%
7.\"
8.\"     @(#)bzero.3	5.3 (Berkeley) 04/19/91
9.\"
10.Dd
11.Dt BZERO 3
12.Os BDS 4.3
13.Sh NAME
14.Nm bzero
15.Nd write zeroes to a byte string
16.Sh SYNOPSIS
17.Fd #include <string.h>
18.Ft void
19.Fn bzero "void *b" "size_t len"
20.Sh DESCRIPTION
21The
22.Fn bzero
23function
24writes
25.Fa len
26zero bytes to the string
27.Fa b .
28If
29.Fa len
30is zero,
31.Fn bzero
32does nothing.
33.Sh SEE ALSO
34.Xr memset 3 ,
35.Xr swab 3
36.Sh HISTORY
37A
38.Fn bzero
39function
40appeared in
41.Bx 4.3 .
42