feat: add ft_tolower function

also change header comments
This commit is contained in:
2025-10-08 10:05:51 +02:00
parent b4d1a32d65
commit 9492262e6b
3 changed files with 27 additions and 5 deletions

8
ft_tolower.c Normal file
View File

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