diff options
Diffstat (limited to 'src/ctype/tolower.c')
| -rw-r--r-- | src/ctype/tolower.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/ctype/tolower.c b/src/ctype/tolower.c index cec51f62..0cbdb9d4 100644 --- a/src/ctype/tolower.c +++ b/src/ctype/tolower.c @@ -1,6 +1,3 @@ -#include <stdio.h> -#include <limits.h> -#include <stdio.h> #include "_ctype.h" /** convert an uppercase letter to lowercase **/ @@ -12,11 +9,7 @@ int tolower(int c) SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); - if (c == EOF) { - return EOF; - } - - return map[c]; + return c == EOF ? EOF : map[c]; } __check_1(int, 0, tolower, int) |
