home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / stg_v4.lzh / strincmp.c < prev    next >
C/C++ Source or Header  |  1994-11-11  |  207b  |  16 lines

  1. char *
  2. strincmp(s1,s2,n)
  3. char *s1,*s2;
  4. int n;
  5. {
  6.     while (n && *s1 && *s2 && toupper(*s1)==toupper(*s2))
  7.     {
  8.         s1++;
  9.         s2++;
  10.         n--;
  11.     }
  12.     if (!n)
  13.         return(0);
  14.     return(toupper(*s2)-toupper(*s1));
  15. }
  16.