diff options
Diffstat (limited to 'ft_toupper.c')
| -rw-r--r-- | ft_toupper.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ft_toupper.c b/ft_toupper.c new file mode 100644 index 0000000..e52e0fa --- /dev/null +++ b/ft_toupper.c @@ -0,0 +1,9 @@ +#include "libft.h" + +int +ft_toupper (int c) +{ + if (c >= 'a' && c <= 'z') + return (c - ('a' - 'A')); + return (c); +} |
