MEMCMP(3) NEWLIB MEMCMP(3)NAME
6.7 `memcmp'--compare two memory areas
SYNOPSIS
#include <string.h>
int memcmp(const void *S1, const void *S2, size_t N);
DESCRIPTION
This function compares not more than N characters of the object pointed
to by S1 with the object pointed to by S2.
RETURNS
The function returns an integer greater than, equal to or less than
zero according to whether the object pointed to by S1 is greater
than, equal to or less than the object pointed to by S2.
PORTABILITY
`memcmp' is ANSI C.
`memcmp' requires no supporting OS subroutines.
SEE ALSOmemcmp is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 MEMCMP(3)