33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* 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));
|
|
// }
|