Section: Linux Programmer's Manual (3)
Return to Main Contents
memcmp - compare memory areas
int memcmp(const void *s1, const void *s2, size_t n);
function compares the first n bytes (each interpreted as
of the memory areas s1 and s2.
function returns an integer less than, equal to, or
greater than zero if the first n bytes of s1 is found,
respectively, to be less than, to match, or be greater than the first
n bytes of s2.
For a nonzero return value, the sign is determined by the sign of
the difference between the first pair of bytes (interpreted as
that differ in
SVr4, 4.3BSD, C89, C99, POSIX.1-2001.
This page is part of release 3.54 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 20:15:18 GMT, January 17, 2018