1BCMP(3) Linux Programmer's Manual BCMP(3)
2
3
4
6 bcmp - compare byte sequences
7
9 #include <strings.h>
10
11 int bcmp(const void *s1, const void *s2, size_t n);
12
14 The bcmp() function compares the two byte sequences s1 and s2 of length
15 n each. If they are equal, and in particular if n is zero, bcmp()
16 returns 0. Otherwise it returns a non-zero result.
17
19 The bcmp() function returns 0 if the byte sequences are equal, other‐
20 wise a non-zero result is returned.
21
23 4.3BSD. This function is deprecated (marked as LEGACY in
24 POSIX.1-2001): use memcmp() in new programs.
25
27 memcmp(3), strcasecmp(3), strcmp(3), strcoll(3), strncasecmp(3),
28 strncmp(3)
29
30
31
32Linux 2002-12-31 BCMP(3)