home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / NLS / FNCMP.C next >
Encoding:
C/C++ Source or Header  |  1993-01-03  |  475 b   |  20 lines

  1. /* fncmp.c (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes */
  2.  
  3. #include <sys/emx.h>
  4. #include <sys/nls.h>
  5. #include <stdlib.h>
  6.  
  7. int _fncmp (const unsigned char *string1, const unsigned char *string2)
  8. {
  9.   int d;
  10.  
  11.   if (!_nls_init_flag) _nls_init();
  12.   for (;;)
  13.     {
  14.       d = (int)_nls_toupper_tab[*string1] - (int)_nls_toupper_tab[*string2];
  15.       if (d != 0 || *string1 == 0 || *string2 == 0)
  16.         return (d);
  17.       ++string1; ++string2;
  18.     }
  19. }
  20.