xref: /csrg-svn/lib/libc/string/bcmp.3 (revision 48351)
1*48351Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California.
241942Sbostic.\" All rights reserved.
341942Sbostic.\"
441942Sbostic.\" This code is derived from software contributed to Berkeley by
541942Sbostic.\" Chris Torek.
641942Sbostic.\" %sccs.include.redist.man%
741942Sbostic.\"
8*48351Scael.\"     @(#)bcmp.3	5.4 (Berkeley) 04/19/91
941942Sbostic.\"
10*48351Scael.Dd
11*48351Scael.Dt BCMP 3
12*48351Scael.Os BSD 4.2
13*48351Scael.Sh NAME
14*48351Scael.Nm bcmp
15*48351Scael.Nd compare byte string
16*48351Scael.Sh SYNOPSIS
17*48351Scael.Fd #include <string.h>
18*48351Scael.Ft int
19*48351Scael.Fn bcmp "const void *b1" "const void *b2" "size_t len"
20*48351Scael.Sh DESCRIPTION
21*48351ScaelThe
22*48351Scael.Fn bcmp
23*48351Scaelfunction
2441942Sbosticcompares byte string
25*48351Scael.Fa b1
2641942Sbosticagainst byte string
27*48351Scael.Fa b2 ,
2841942Sbosticreturning zero if they are identical, non-zero otherwise.
2941942SbosticBoth strings are assumed to be
30*48351Scael.Fa len
3141942Sbosticbytes long.
3241942SbosticZero-length strings are always identical.
33*48351Scael.Pp
3441942SbosticThe strings may overlap.
35*48351Scael.Sh SEE ALSO
36*48351Scael.Xr bcmp 3 ,
37*48351Scael.Xr memcmp 3 ,
38*48351Scael.Xr strcasecmp 3 ,
39*48351Scael.Xr strcmp 3 ,
40*48351Scael.Xr strcoll 3 ,
41*48351Scael.Xr strxfrm 3
42*48351Scael.Sh HISTORY
43*48351ScaelA
44*48351Scael.Fn bcmp
45*48351Scaelfunction first appeared in
46*48351Scael.Bx 4.2 .
47