4.1cBSD/usr/man/man3/bstring.3

Compare this file to the similar file:
Show the results in this format:

.TH BSTRING 3  "4 March 1983"
.SH NAME
bcopy, bcmp, bzero \- byte string operations
.SH SYNOPSIS
.nf
.B bcopy(b1, b2, length)
.B char *b1, *b2;
.B int length;
.PP
.B bcmp(b1, b2, length)
.B char *b1, *b2;
.B int length;
.PP
.B bzero(b, length)
.B char *b1;
.B int length;
.fi
.SH DESCRIPTION
These functions operate on variable length strings of bytes.
They do not check for null bytes as the routines in
.IR string (3)
do.
.PP
.I Bcopy
copies 
.I length
bytes from string
.I b1
to the string
.IR b2 .
.PP
.I Bcmp
compares byte string
.I b1
against byte string
.IR b2 ,
returning zero if they are identical,
non-zero otherwise.  Both strings are
assumed to be
.I length
bytes long.
.PP
.I Bzero
places
.I length
0 bytes in the string
.IR b1 .
.SH BUGS
The
.I bcmp
and 
.I bcopy
routines take parameters backwards from
.I strcmp
and
.IR strcpy .