home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
NEWS
/
677
/
TSRTOOLS
/
STRCMP.C
< prev
next >
Wrap
Text File
|
1993-10-07
|
247b
|
17 lines
/*
strcmp.C
Copyright (C) 1993, Geoff Friesen B.Sc.
All rights reserved.
*/
#define INCL_STRCMP
int strcmp (const char *s1, const char *s2)
{
for (; *s1 == *s2; s1++, s2++)
if (!*s1)
return 0;
return (*s1-*s2);
}