.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by the University of
-.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\" SUCH DAMAGE.
.\"
.\" @(#)bcmp.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libc/string/bcmp.3,v 1.9 2002/08/30 21:07:40 robert Exp $
+.\" $FreeBSD: src/lib/libc/string/bcmp.3,v 1.11 2007/01/09 00:28:11 imp Exp $
.\"
.Dd June 4, 1993
.Dt BCMP 3
.Sh SYNOPSIS
.In strings.h
.Ft int
-.Fn bcmp "const void *b1" "const void *b2" "size_t len"
+.Fn bcmp "const void *s1" "const void *s2" "size_t n"
.Sh DESCRIPTION
The
.Fn bcmp
function
compares byte string
-.Fa b1
+.Fa s1
against byte string
-.Fa b2 ,
+.Fa s2 ,
returning zero if they are identical, non-zero otherwise.
Both strings are assumed to be
-.Fa len
+.Fa n
bytes long.
Zero-length strings are always identical.
.Pp
function first appeared in
.Bx 4.2 .
Its prototype existed previously in
-.Aq Pa string.h
+.In string.h
before it was moved to
-.Aq Pa strings.h
+.In strings.h
for
.St -p1003.1-2001
compliance.