1*61193Sbostic.\" Copyright (c) 1990, 1991, 1993 2*61193Sbostic.\" The Regents of the University of California. 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*61193Sbostic.\" @(#)bcmp.3 8.1 (Berkeley) 06/04/93 941942Sbostic.\" 1048351Scael.Dd 1148351Scael.Dt BCMP 3 1248351Scael.Os BSD 4.2 1348351Scael.Sh NAME 1448351Scael.Nm bcmp 1548351Scael.Nd compare byte string 1648351Scael.Sh SYNOPSIS 1748351Scael.Fd #include <string.h> 1848351Scael.Ft int 1948351Scael.Fn bcmp "const void *b1" "const void *b2" "size_t len" 2048351Scael.Sh DESCRIPTION 2148351ScaelThe 2248351Scael.Fn bcmp 2348351Scaelfunction 2441942Sbosticcompares byte string 2548351Scael.Fa b1 2641942Sbosticagainst byte string 2748351Scael.Fa b2 , 2841942Sbosticreturning zero if they are identical, non-zero otherwise. 2941942SbosticBoth strings are assumed to be 3048351Scael.Fa len 3141942Sbosticbytes long. 3241942SbosticZero-length strings are always identical. 3348351Scael.Pp 3441942SbosticThe strings may overlap. 3548351Scael.Sh SEE ALSO 3648351Scael.Xr bcmp 3 , 3748351Scael.Xr memcmp 3 , 3848351Scael.Xr strcasecmp 3 , 3948351Scael.Xr strcmp 3 , 4048351Scael.Xr strcoll 3 , 4148351Scael.Xr strxfrm 3 4248351Scael.Sh HISTORY 4348351ScaelA 4448351Scael.Fn bcmp 4548351Scaelfunction first appeared in 4648351Scael.Bx 4.2 . 47