memcpy

memcmp

#include <string.h>int memcmp(const void *buf1, const void *buf2,  size_t count);

The memcmp( ) function compares the first count characters of the arrays pointed to by buf1 and buf2.

The memcmp( ) function returns an integer that is interpreted as indicated here:

Value

Meaning

Less than zero

buf1 is less than buf2

Zero

buf1 is equal to buf2

Greater than zero

buf1 is greater than buf2

Related functions are memchr( ), memcpy( ), and strcmp( ).




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net