-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathft_tolower.c
19 lines (18 loc) · 990 Bytes
/
ft_tolower.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rlambert <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/04 16:07:33 by rlambert #+# #+# */
/* Updated: 2014/11/04 16:09:28 by rlambert ### ########.fr */
/* */
/* ************************************************************************** */
int ft_tolower(int c)
{
if (65 <= c && c <= 90)
return (c - 'A' + 'a');
else
return (c);
}