www.delorie.com/djgpp/doc/libc/libc_565.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004