feat: add ft_toupper function

This commit is contained in:
2025-10-05 22:00:14 +02:00
parent 3e543ced2f
commit b4d1a32d65
2 changed files with 17 additions and 0 deletions

8
ft_toupper.c Normal file
View File

@@ -0,0 +1,8 @@
#include "libft.h"
int ft_toupper(int c)
{
if ('a' <= c && c <= 'z')
c -= 32;
return (c);
}