Commit | Line | Data |
---|---|---|
cce55ae2 KB |
1 | .\" Copyright (c) 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" This code is derived from software contributed to Berkeley by | |
5 | .\" Chris Torek. | |
6 | .\" | |
7 | .\" %sccs.include.redist.man% | |
8 | .\" | |
b8dfab23 | 9 | .\" @(#)bcmp.3 5.2 (Berkeley) %G% |
cce55ae2 KB |
10 | .\" |
11 | .TH BCMP 3 "" | |
12 | .UC 7 | |
13 | .SH NAME | |
14 | bcmp \- compare byte string | |
15 | .SH SYNOPSIS | |
16 | .nf | |
17 | .ft B | |
18 | #include <string.h> | |
19 | ||
20 | int | |
21 | bcmp(const char *b1, const char *b2, size_t len); | |
22 | .ft R | |
23 | .fi | |
24 | .SH DESCRIPTION | |
25 | .B Bcmp | |
26 | compares byte string | |
27 | .I b1 | |
28 | against byte string | |
29 | .IR b2 , | |
30 | returning zero if they are identical, non-zero otherwise. | |
31 | Both strings are assumed to be | |
32 | .I len | |
33 | bytes long. | |
34 | Zero-length strings are always identical. | |
35 | .PP | |
36 | The strings may overlap. | |
37 | .SH SEE ALSO | |
b8dfab23 | 38 | bcmp(3), memcmp(3), strcasecmp(3), strcmp(3), strcoll(3), strxfrm(3) |