summaryrefslogtreecommitdiff
path: root/ft_toupper.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_toupper.c')
-rw-r--r--ft_toupper.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/ft_toupper.c b/ft_toupper.c
new file mode 100644
index 0000000..5082232
--- /dev/null
+++ b/ft_toupper.c
@@ -0,0 +1,18 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_toupper.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2024/03/04 21:33:34 by dkaiser #+# #+# */
+/* Updated: 2024/03/04 21:49:16 by dkaiser ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+int ft_toupper(int c)
+{
+ if (c >= 'a' && c <= 'z')
+ return (c - 32);
+ return (c);
+}