.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" May be distributed under the GNU General Public License .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 21:36:50 1993 by Rik Faith (faith@cs.unc.edu) .TH BCMP 3 "April 9, 1993" "GNU" "Linux Programmer's Manual" .SH NAME bcmp \- compare byte strings .SH SYNOPSIS .nf .B #include .sp .BI "int bcmp(const void *" s1 ", const void *" s2 ", int " n ); .fi .SH DESCRIPTION The \fBbcmp()\fP function compares the first \fIn\fP bytes of the strings \fIs1\fP and \fIs2\fP. If the two strings are equal, \fBbcmp()\fP returns 0, otherwise it returns a non-zero result. If \fIn\fP is zero, the two strings are assumed to be equal. .SH "RETURN VALUE" The \fBbcmp()\fP function returns 0 if the strings are equal, otherwise a non-zero result is returned. .SH "CONFORMING TO" BSD 4.3 .SH SEE ALSO .BR memcmp "(3), " strcasecmp "(3), " strcmp (3), .BR strcoll "(3), " strncmp "(3), " strncasecmp (3)