aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_toupper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_toupper.c')
-rw-r--r--src/ft_toupper.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ft_toupper.c b/src/ft_toupper.c
new file mode 100644
index 0000000..e52e0fa
--- /dev/null
+++ b/src/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);
+}