www.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   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004