.\" SUCH DAMAGE.
.\"
.\" @(#)bcmp.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libc/string/bcmp.3,v 1.8 2001/10/01 16:09:00 ru Exp $
+.\" $FreeBSD: src/lib/libc/string/bcmp.3,v 1.10 2003/09/08 19:57:15 ru Exp $
.\"
.Dd June 4, 1993
.Dt BCMP 3
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In string.h
+.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
.Fn bcmp
function first appeared in
.Bx 4.2 .
+Its prototype existed previously in
+.In string.h
+before it was moved to
+.In strings.h
+for
+.St -p1003.1-2001
+compliance.