home *** CD-ROM | disk | FTP | other *** search
- /* fncmp.c (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes */
-
- #include <sys/emx.h>
- #include <sys/nls.h>
- #include <stdlib.h>
-
- int _fncmp (const unsigned char *string1, const unsigned char *string2)
- {
- int d;
-
- if (!_nls_init_flag) _nls_init();
- for (;;)
- {
- d = (int)_nls_toupper_tab[*string1] - (int)_nls_toupper_tab[*string2];
- if (d != 0 || *string1 == 0 || *string2 == 0)
- return (d);
- ++string1; ++string2;
- }
- }
-