projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
macro and text revision (-mdoc version 3)
[unix-history]
/
usr
/
src
/
lib
/
libc
/
string
/
bcmp.3
diff --git
a/usr/src/lib/libc/string/bcmp.3
b/usr/src/lib/libc/string/bcmp.3
index
d1df37b
..
e2228b2
100644
(file)
--- a/
usr/src/lib/libc/string/bcmp.3
+++ b/
usr/src/lib/libc/string/bcmp.3
@@
-1,38
+1,46
@@
-.\" Copyright (c) 1990 The Regents of the University of California.
+.\" Copyright (c) 1990
, 1991
The Regents of the University of California.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" Chris Torek.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" Chris Torek.
-.\"
.\" %sccs.include.redist.man%
.\"
.\" %sccs.include.redist.man%
.\"
-.\"
@(#)bcmp.3 5.2
(Berkeley) %G%
+.\"
@(#)bcmp.3 5.4
(Berkeley) %G%
.\"
.\"
-.TH BCMP 3 ""
-.UC 7
-.SH NAME
-bcmp \- compare byte string
-.SH SYNOPSIS
-.nf
-.ft B
-#include <string.h>
-
-int
-bcmp(const char *b1, const char *b2, size_t len);
-.ft R
-.fi
-.SH DESCRIPTION
-.B Bcmp
+.Dd
+.Dt BCMP 3
+.Os BSD 4.2
+.Sh NAME
+.Nm bcmp
+.Nd compare byte string
+.Sh SYNOPSIS
+.Fd #include <string.h>
+.Ft int
+.Fn bcmp "const void *b1" "const void *b2" "size_t len"
+.Sh DESCRIPTION
+The
+.Fn bcmp
+function
compares byte string
compares byte string
-.
I
b1
+.
Fa
b1
against byte string
against byte string
-.
IR
b2 ,
+.
Fa
b2 ,
returning zero if they are identical, non-zero otherwise.
Both strings are assumed to be
returning zero if they are identical, non-zero otherwise.
Both strings are assumed to be
-.
I
len
+.
Fa
len
bytes long.
Zero-length strings are always identical.
bytes long.
Zero-length strings are always identical.
-.P
P
+.P
p
The strings may overlap.
The strings may overlap.
-.SH SEE ALSO
-bcmp(3), memcmp(3), strcasecmp(3), strcmp(3), strcoll(3), strxfrm(3)
+.Sh SEE ALSO
+.Xr bcmp 3 ,
+.Xr memcmp 3 ,
+.Xr strcasecmp 3 ,
+.Xr strcmp 3 ,
+.Xr strcoll 3 ,
+.Xr strxfrm 3
+.Sh HISTORY
+A
+.Fn bcmp
+function first appeared in
+.Bx 4.2 .