-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_tolower.c
18 lines (16 loc) · 985 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: edebi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/10/30 14:27:34 by edebi #+# #+# */
/* Updated: 2020/10/30 14:35:36 by edebi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_tolower(int c)
{
return ((c >= 'A' && c <= 'Z') ? c + 32 : c);
}