Go to the first, previous, next, last section, table of contents.


memcmp

Syntax

#include <string.h>

int memcmp(const void *s1, const void *s2, size_t num);

Description

This function compares two regions of memory, at s1 and s2, for num bytes.

Return Value

zero
s1 == s2
positive
s1 > s2
negative
s1 < s2

Portability

ANSI, POSIX


Go to the first, previous, next, last section, table of contents.