Removed unnecessary comparisons when lowercasing a string.

This commit is contained in:
Jim Monte 2019-12-23 01:03:35 -05:00 committed by Holger Vogt
parent faf01c0376
commit 6385c7a900
1 changed files with 1 additions and 3 deletions

View File

@ -85,9 +85,7 @@ void str_to_lower(char *s)
char c;
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);
}