|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 379 (0x17b)
Types: TextFile
Names: »cistrcmp.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
└─⟦this⟧ »EUUGD11/euug-87hel/sec1/news/misc/search/lib/cistrcmp.c«
/* Case-independent strcmp. */
#include "defs.h"
int
cistrcmp(s1, s2)
register char *s1, *s2;
{
register c1, c2;
for (;;) {
c1= *s1++;
c2= *s2++;
if (c1 == c2) {
if (c1 == EOS)
return 0;
}
else {
if (isupper(c1))
c1= _tolower(c1);
if (isupper(c2))
c2= _tolower(c2);
if (c1 < c2)
return -1;
else if (c1 > c2)
return 1;
}
}
}