C Tutorial/string.h/memcmp

Материал из C\C++ эксперт
Перейти к: навигация, поиск

memcmp

Item Value Header file string.h Declaration int memcmp(const void *buf1, const void *buf2, size_t count); Function compares the first count characters between buf1 and buf2. Return returns an integer as follows: Value Meaning < 0 buf1 is less than buf2 0 buf1 is equal to buf2 > 0 buf1 is greater than buf2