-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strlowcase.c
29 lines (26 loc) · 1.05 KB
/
ft_strlowcase.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlowcase.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sbin-jef <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/09 11:28:00 by sbin-jef #+# #+# */
/* Updated: 2024/05/09 11:28:39 by sbin-jef ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
char *ft_strlowcase(char *str)
{
int x;
x = 0;
while (str[x] != '\0')
{
if (str[x] >= 'A' && str[x] <= 'Z')
{
str[x] += 32;
}
x++;
}
return (str);
}