From 5b653ccffdc33c8774697a93cad0b499b88dca71 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 28 Jul 2019 21:12:28 +0200 Subject: std library function almost done, tested with libft-unit-tests --- ft_toupper.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ft_toupper.c (limited to 'ft_toupper.c') diff --git a/ft_toupper.c b/ft_toupper.c new file mode 100644 index 0000000..7e85f8d --- /dev/null +++ b/ft_toupper.c @@ -0,0 +1,8 @@ +#include "libft.h" + +int ft_toupper(int c) +{ + if (c >= 'a' && c <= 'z') + return (c - 'a' + 'A'); + return (c); +} -- cgit