Removed unnecessary comparisons when lowercasing a string.
This commit is contained in:
parent
10d0f18fb6
commit
8570089260
|
|
@ -85,8 +85,6 @@ void str_to_lower(char *s)
|
||||||
char c;
|
char c;
|
||||||
|
|
||||||
for(i = 0; (c = s[i]) != '\0'; i++)
|
for(i = 0; (c = s[i]) != '\0'; i++)
|
||||||
if(isalpha_c(c))
|
|
||||||
if(isupper_c(c))
|
|
||||||
s[i] = tolower_c(c);
|
s[i] = tolower_c(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue