-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strlower.c
28 lines (25 loc) · 1.03 KB
/
ft_strlower.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: thifranc <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/10/30 17:23:15 by thifranc #+# #+# */
/* Updated: 2017/12/02 12:51:41 by thifranc ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strlower(char *s)
{
int i;
i = 0;
if (!s)
return (NULL);
while (s[i])
{
s[i] = ft_tolower(s[i]);
i++;
}
return (s);
}