1BCMP(3)                    Linux Programmer's Manual                   BCMP(3)
2
3
4

NAME

6       bcmp - compare byte sequences
7

SYNOPSIS

9       #include <strings.h>
10
11       int bcmp(const void *s1, const void *s2, size_t n);
12

DESCRIPTION

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

RETURN VALUE

19       The  bcmp()  function returns 0 if the byte sequences are equal, other‐
20       wise a non-zero result is returned.
21

CONFORMING TO

23       4.3BSD.   This  function   is   deprecated   (marked   as   LEGACY   in
24       POSIX.1-2001): use memcmp(3) in new programs.  POSIX.1-2008 removes the
25       specification of bcmp().
26

SEE ALSO

28       memcmp(3),  strcasecmp(3),   strcmp(3),   strcoll(3),   strncasecmp(3),
29       strncmp(3)
30

COLOPHON

32       This  page  is  part of release 3.22 of the Linux man-pages project.  A
33       description of the project, and information about reporting  bugs,  can
34       be found at http://www.kernel.org/doc/man-pages/.
35
36
37
38Linux                             2008-08-06                           BCMP(3)
Impressum