Don't "cheat" and use Nu_strcasecmp(), since it's not part of the formal

export list.
This commit is contained in:
Andy McFadden 2002-12-06 00:49:22 +00:00
parent 321392dbba
commit b5c3d4e358
1 changed files with 7 additions and 3 deletions

View File

@ -15,10 +15,14 @@
#include "NufxLib.h"
#include "Common.h"
/* we can get this out of NufxLib if the OS doesn't have it */
#ifndef HAVE_STRCASECMP
#define strcasecmp Nu_strcasecmp
int Nu_strcasecmp(const char *s1, const char *s2);
static int
strcasecmp(const char *str1, const char *str2)
{
while (*str1 && *str2 && toupper(*str1) == toupper(*str2))
str1++, str2++;
return (toupper(*str1) - toupper(*str2));
}
#endif