-
Notifications
You must be signed in to change notification settings - Fork 4
/
ft_strlwr.c
29 lines (26 loc) · 1.02 KB
/
ft_strlwr.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_strlwr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vbrazhni <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/07/04 17:31:58 by vbrazhni #+# #+# */
/* Updated: 2018/07/04 17:32:00 by vbrazhni ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strlwr(char *s)
{
size_t i;
if (s)
{
i = 0;
while (s[i])
{
s[i] = ft_tolower(s[i]);
i++;
}
}
return (s);
}