home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
352_01
/
strppmcp.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-24
|
642b
|
19 lines
// STRPPMCP.CPP - this module contains String::memcmp()
// This routine compares two areas of memory
// exactly like ANSI C memcmp() but determines whether to use
// case Sensitive compare or not bassed on whether String::caseSens is ON
//
#include <stdlib.h>
#include <string.h>
#include "dblib.h"
// NOTE: routine declared static in class {}. No 'this' ptr.
int String::memcmp (char *a, char *b, int nb)
// String::memcmp compares two memory areas
// checking for caseSens comparison. Note scope resolution.
{
return String::caseSens ? ::memcmp(a,b,nb) : memicmp(a,b,nb);
} // end String::memcmp()