-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_tolower.c
26 lines (23 loc) · 1.02 KB
/
ft_tolower.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pablomar <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/05 14:45:57 by pablomar #+# #+# */
/* Updated: 2019/11/08 17:37:38 by pablomar ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_tolower(int c)
{
int num;
num = c;
if ((c >= 65) && (c <= 90))
{
num = num + 32;
return (num);
}
return (num);
}