Mercurial > sdl-ios-xcode
comparison src/stdlib/SDL_string.c @ 1512:845b1619c8f6
Added _strnicmp support
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 13 Mar 2006 02:12:39 +0000 |
parents | 720f8bb49d7d |
children | 14717b52abc0 |
comparison
equal
deleted
inserted
replaced
1511:de816bde0bf1 | 1512:845b1619c8f6 |
---|---|
676 } | 676 } |
677 return (int)((unsigned char)a - (unsigned char)b); | 677 return (int)((unsigned char)a - (unsigned char)b); |
678 } | 678 } |
679 #endif | 679 #endif |
680 | 680 |
681 #ifndef HAVE_STRNCASECMP | 681 #if !defined(HAVE_STRNCASECMP) && !defined(HAVE__STRNICMP) |
682 int SDL_strncasecmp(const char *str1, const char *str2, size_t maxlen) | 682 int SDL_strncasecmp(const char *str1, const char *str2, size_t maxlen) |
683 { | 683 { |
684 char a = 0; | 684 char a = 0; |
685 char b = 0; | 685 char b = 0; |
686 while ( *str1 && *str2 && maxlen ) { | 686 while ( *str1 && *str2 && maxlen ) { |