Removed unnecessary comparisons when lowercasing a string.
This commit is contained in:
parent
b767df3a7e
commit
3a2a05f7b0
|
|
@ -85,9 +85,7 @@ 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))
|
s[i] = tolower_c(c);
|
||||||
if(isupper_c(c))
|
|
||||||
s[i] = tolower_c(c);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue