strncasecmp and memicmp appear to be the same from the man pages. However I don't have memicmp and unless other systems don't have strncasecmp I see no reason to add more checks to the configure script.

This commit is contained in:
Steve Checkoway
2003-07-03 09:21:36 +00:00
parent 4149ac1ef2
commit 562251ec37
+2 -1
View File
@@ -244,7 +244,8 @@ struct char_traits_char_nocase: public char_traits<char>
{ return toupper(c1) < toupper(c2); }
static int compare( const char* s1, const char* s2, size_t n ) {
return memicmp( s1, s2, n );
//return memicmp( s1, s2, n );
return strncasecmp( s1, s2, n );
}
static inline char fasttoupper(char a)