| 63 | |
| 64 | |
| 65 | int stricomp(const char *s1,const char *s2) |
| 66 | { |
| 67 | #ifdef _WIN_ALL |
| 68 | return CompareStringA(LOCALE_USER_DEFAULT,NORM_IGNORECASE|SORT_STRINGSORT,s1,-1,s2,-1)-2; |
| 69 | #else |
| 70 | while (toupper(*s1)==toupper(*s2)) |
| 71 | { |
| 72 | if (*s1==0) |
| 73 | return 0; |
| 74 | s1++; |
| 75 | s2++; |
| 76 | } |
| 77 | return s1 < s2 ? -1 : 1; |
| 78 | #endif |
| 79 | } |
| 80 | |
| 81 | |
| 82 | int strnicomp(const char *s1,const char *s2,size_t n) |
nothing calls this directly
no outgoing calls
no test coverage detected