-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_tolower.c
23 lines (20 loc) · 1.04 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: xle-boul <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/02 23:36:59 by xle-boul #+# #+# */
/* Updated: 2021/10/17 15:47:43 by xle-boul ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/* converts a capital letter to its lowercase counterpart */
int ft_tolower(int c)
{
if ('A' <= c && c <= 'Z')
return (c + 32);
else
return (c);
}