Microsoft Shell functions speed
Library code can be slower or faster than hand-written code - I'm wondering which is the case for Microsoft's (MingW's) implementation of Shell string functions, in particular StrChrI.
This is an easy one to hand-code & optimize:
So I'm wondering which should I use/is faster?
strchri( const char *s, int c )
while((*s != '\0') && (*s != (char)toupper(c)) && (*s != (char)tolower(c))) ++s;
if(*s == (char)toupper(c) || *s == (char)tolower(c))
return (char *)s;