1 /* Cross platform case insenstive string compare functions
7 PyOS_mystrnicmp(const char *s1
, const char *s2
, Py_ssize_t size
)
11 while ((--size
> 0) && (tolower(*s1
) == tolower(*s2
))) {
15 return tolower(*s1
) - tolower(*s2
);
19 PyOS_mystricmp(const char *s1
, const char *s2
)
21 while (*s1
&& (tolower(*s1
++) == tolower(*s2
++))) {
24 return (tolower(*s1
) - tolower(*s2
));