|
|
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: 367 (0x16f)
Types: TextFile
Names: »namecmp2.c«
└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen
└─⟦this⟧ »cph85dist/wirewrap/namecmp2.c«
/*
** namecmp2 - compare two names. Works like strcmp()
** This is the same as namecmp except that
** namecmp2 ignores case.
*/
#include "wirewrap.h"
namecmp2(a,b)
char a[NAMELENGTH],b[NAMELENGTH];
{
int i;
for(i=0;i<NAMELENGTH;i++)
{
if(tolower(a[i])<tolower(b[i]))return(-1);
else if (tolower(a[i])>tolower(b[i]))return(1);
}
return(0);
}