reactos/lib/3rdparty/libwine/string.c
Art Yerkes c501d8112c Create a branch for network fixes.
svn path=/branches/aicom-network-fixes/; revision=34994
2008-08-01 11:32:26 +00:00

23 lines
472 B
C

#include <ctype.h>
#include "wine/config.h"
#include "wine/port.h"
#ifndef HAVE_STRCASECMP
#ifdef strcasecmp
# undef strcasecmp
#endif
int strcasecmp( const char *str1, const char *str2 )
{
const unsigned char *ustr1 = (const unsigned char *)str1;
const unsigned char *ustr2 = (const unsigned char *)str2;
while (*ustr1 && toupper(*ustr1) == toupper(*ustr2)) {
ustr1++;
ustr2++;
}
return toupper(*ustr1) - toupper(*ustr2);
}
#endif