home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / CXREF.ZIP / STRICMP.C < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-01  |  237 b   |  13 lines

  1. int stricmp(a, b)
  2. char *a, *b;
  3. {
  4.    int Result;
  5.  
  6.    while (((Result = toupper(*a++) - toupper(*b++)) == 0) && (*(a - 1) != 0));
  7.    if (Result < 0)
  8.       Result = -1;
  9.    if (Result > 0)
  10.       Result = 1;
  11.    return (Result);
  12. }
  13.