aboutsummaryrefslogtreecommitdiff
path: root/ft_toupper.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_toupper.c')
-rw-r--r--ft_toupper.c8
1 files changed, 8 insertions, 0 deletions
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);
+}