www.delorie.com/djgpp/doc/libc-2.01/libc_460.html   search  
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


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

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997