diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-07-29 13:27:25 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-07-29 13:27:25 +0200 |
| commit | 009780065032aa23c6d72dd7ab02adb481a7c76d (patch) | |
| tree | 720fc692813d75019b30b78e980ff4a7dd3ffac0 /ft_toupper.c | |
| parent | 5b653ccffdc33c8774697a93cad0b499b88dca71 (diff) | |
| download | libft-009780065032aa23c6d72dd7ab02adb481a7c76d.tar.gz libft-009780065032aa23c6d72dd7ab02adb481a7c76d.tar.bz2 libft-009780065032aa23c6d72dd7ab02adb481a7c76d.zip | |
part 1 pass except ft_isalnum (why??)
Diffstat (limited to 'ft_toupper.c')
| -rw-r--r-- | ft_toupper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ft_toupper.c b/ft_toupper.c index 7e85f8d..2832c28 100644 --- a/ft_toupper.c +++ b/ft_toupper.c @@ -2,6 +2,12 @@ int ft_toupper(int c) { + if (c < -1) + return (c + 256); + if (c == -1) + return (-1); + if (c == 0) + return (0); if (c >= 'a' && c <= 'z') return (c - 'a' + 'A'); return (c); |
