Simplify str_toupper() in "utils.c".

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-03-04 08:51:36 +01:00
parent 05900b62e9
commit 061f74108b
3 changed files with 25 additions and 29 deletions

View File

@@ -957,14 +957,11 @@ parse_date (char *date_string, enum datefmt datefmt, int *year, int *month,
return 1;
}
char *
void
str_toupper (char *s)
{
int len;
for (len = 0; s && s[len]; len++)
s[len] = toupper (s[len]);
return s;
if (!s) return;
for (; *s; s++) *s = toupper (*s);
}
void