summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
76ce485)
SCCS-vsn: lib/libc/string/bstring.3 6.1
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)bstring.3 5.1 (Berkeley) %G%
+.\" @(#)bstring.3 6.1 (Berkeley) %G%
-.TH BSTRING 3 "4 March 1983"
.UC 5
.SH NAME
bcopy, bcmp, bzero, ffs \- bit and byte string operations
.SH SYNOPSIS
.nf
.UC 5
.SH NAME
bcopy, bcmp, bzero, ffs \- bit and byte string operations
.SH SYNOPSIS
.nf
-.B bcopy(b1, b2, length)
-.B char *b1, *b2;
+.B bcopy(src, dst, length)
+.B char *src, *dst;
.B int length;
.PP
.B bcmp(b1, b2, length)
.B int length;
.PP
.B bcmp(b1, b2, length)
copies
.I length
bytes from string
copies
.I length
bytes from string
.PP
.I Bcmp
compares byte string
.PP
.I Bcmp
compares byte string
.I Ffs
find the first bit set in the argument passed it and
returns the index of that bit. Bits are numbered
.I Ffs
find the first bit set in the argument passed it and
returns the index of that bit. Bits are numbered
-starting at 1. A return value of \-1 indicates the
+starting at 1. A return value of 0 indicates the
value passed is zero.
.SH BUGS
The
value passed is zero.
.SH BUGS
The
-routines take parameters backwards from
-.I strcmp
-and
+routine take parameters backwards from