mirror of
https://github.com/aap/librw.git
synced 2026-08-10 09:37:04 +01:00
work on uvanims
This commit is contained in:
@@ -40,6 +40,22 @@ static Matrix identMat = {
|
||||
};
|
||||
|
||||
// lazy implementation
|
||||
int
|
||||
strcmp_ci(const char *s1, const char *s2)
|
||||
{
|
||||
char c1, c2;
|
||||
for(;;){
|
||||
c1 = tolower(*s1);
|
||||
c2 = tolower(*s2);
|
||||
if(c1 != c2)
|
||||
return c1 - c2;
|
||||
if(c1 == '\0')
|
||||
return 0;
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
strncmp_ci(const char *s1, const char *s2, int n)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user