From 009780065032aa23c6d72dd7ab02adb481a7c76d Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 29 Jul 2019 13:27:25 +0200 Subject: part 1 pass except ft_isalnum (why??) --- ft_toupper.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ft_toupper.c') 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); -- cgit