DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦8c8d8ab48⟧ TextFile

    Length: 367 (0x16f)
    Types: TextFile
    Names: »namecmp2.c«

Derivation

└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen
    └─ ⟦this⟧ »cph85dist/wirewrap/namecmp2.c« 

TextFile

/*
** 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);
}