This commit is contained in:
root
2026-02-23 00:04:03 +00:00
commit fadb328b05
17 changed files with 573 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlowcase.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sgongas <sgongas@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/22 23:26:17 by sgongas #+# #+# */
/* Updated: 2026/02/22 23:30:43 by sgongas ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strlowcase(char *str)
{
int i;
i = 0;
while (str[i])
{
if (str[i] >= 'A' && str[i] <= 'Z')
str[i] += 32;
i++;
}
return (str);
}
// #include <stdio.h>
// int main(void)
// {
// char str[] = "HelLLo212FFFFFff @#@#";
// printf("%s", ft_strlowcase(str));
// }