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

NAME

6       memcmp - compare memory areas
7

SYNOPSIS

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

DESCRIPTION

14       The memcmp() function compares the first n bytes of the memory areas s1
15       and s2.  It returns an integer less than, equal  to,  or  greater  than
16       zero  if  s1  is  found, respectively, to be less than, to match, or be
17       greater than s2.
18

RETURN VALUE

20       The memcmp() function returns  an  integer  less  than,  equal  to,  or
21       greater than zero if the first n bytes of s1 is found, respectively, to
22       be less than, to match, or be greater than the first n bytes of s2.
23

CONFORMING TO

25       SVr4, 4.3BSD, C89, C99, POSIX.1-2001.
26

SEE ALSO

28       bcmp(3),   strcasecmp(3),   strcmp(3),   strcoll(3),    strncasecmp(3),
29       strncmp(3), wmemcmp(3)
30
31
32
33                                  1993-04-10                         MEMCMP(3)
Impressum