delorie.com/djgpp/doc/libc/libc_567.html   search  
libc.a reference

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

memicmp

Syntax

 
#include <string.h>

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

Description

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

Return Value

Zero if they're the same, nonzero if different, the sign indicates "order".

Portability

ANSI/ISO C No
POSIX No

Example

 
if (memicmp(arg, "-i", 2) == 0)   /* '-I' or '-include' etc. */
  do_include();


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004