Table of Contents Previous topic Next topic
C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->memcmp()
Summary
#include <string.h>
| char *memcmp(void *buf1,void* buf2, size_t count); | Compare characters in two buffers |
| buf1 | Pointer to first buffer |
| buf2 | Pointer to second buffer |
| count | Number of characters to compare |
| Value | Meaning |
| < 0 | buf1less than buf2 |
| = 0 | buf1 identical to buf2 |
| > 0 | buf1greater than buf2 |