Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
memcmp, _fmemcmp
◄Description► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Include: <string.h>, <memory.h>
Syntax: int memcmp( void *buf1, void *buf2, size_t count );
int _fmemcmp( void _far *buf1, void _far *buf2,
size_t count );
Returns: a negative value if <buf1> is less than <buf2>, 0 if
<buf1> is equal to <buf2>, or a positive value if <buf1>
is greater than <buf2>.
See also: memccpy, memchr, memcpy, memicmp, memset
-♦-