-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_tolower.c
18 lines (16 loc) · 993 Bytes
/
ft_tolower.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ccline <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/01 00:01:39 by ccline #+# #+# */
/* Updated: 2019/10/05 11:39:58 by ccline ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_tolower(int c)
{
return ((c >= 'A' && c <= 'Z') ? c - 'A' + 'a' : c);
}