-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strlowcase.c
executable file
·27 lines (24 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlowcase.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kbensado <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/10/16 13:31:47 by kbensado #+# #+# */
/* Updated: 2015/12/28 12:23:24 by kbensado ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strlowcase(char *str)
{
int i;
i = 0;
while (str[i] != '\0')
{
if (str[i] >= 'A' && str[i] <= 'Z')
str[i] += 32;
i++;
}
return (str);
}