blob: 1ee24b4d10955ef88d6fdebcf9a19c2d2af52b0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
.\" 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 <string.h>
.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)
|