-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_tolower.c
33 lines (28 loc) · 1.14 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
27
28
29
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jede-ara <jede-ara@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/02 15:45:38 by jede-ara #+# #+# */
/* Updated: 2022/11/08 14:31:08 by jede-ara ### ########.fr */
/* */
/* ************************************************************************** */
/*
DESCRIÇÃO: tolower() converte letras maiúsculas em minúsculas.
*/
#include "libft.h"
int ft_tolower(int c)
{
if (c >= 'A' && c <= 'Z')
return (c + ('a' - 'A'));
return (c);
}
/*#include <stdio.h>
int main()
{
int c;
c = 'A';
printf("%c", ft_tolower(c));
}*/