(C) 1998 AROS - The Amiga Research OS


NAME
#include <string.h>

int memcmp ()

SYNOPSIS
const void * s1
const void * s2
size_t n

FUNCTION
Calculate s1 - s2 for the n bytes after s1 and s2 and stop when the difference is not 0.

INPUTS
s1, s2 - Begin of the memory areas to compare
n
The number of bytes to compare

RESULT
The difference of the memory areas. The difference is 0, if both are equal, < 0 if s1 < s2 and > 0 if s1 > s2. Note that it may be greater then 1 or less than -1.

EXAMPLE

SEE ALSO
strcmp(), strncmp(), strcasecmp() strncasecmp()

NOTES
This function is not part of a library and may thus be called any time.

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
13.07.1997 iaint
A few uninitialized variable changes
12.12.1996 aros
Added missing const flag.
11.12.1996 aros
New functions