-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_tolower.c
32 lines (29 loc) · 1.09 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ldel-val <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/23 11:03:18 by ldel-val #+# #+# */
/* Updated: 2024/10/06 12:34:00 by ldel-val ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_tolower(int c)
{
if (c >= 'A' && c <= 'Z')
c += 32;
return (c);
}
/*
int main(void)
{
int c;
c = 0;
while (c < 128)
{
printf("letra: %c, mayúscula: %c\n", c, ft_tolower(c));
c++;
}
}*/