forked from bridiefranks/42-libft-with-comments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_tolower.c
31 lines (30 loc) · 1.13 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bfranks <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/03 18:24:20 by bfranks #+# #+# */
/* Updated: 2022/03/10 15:58:13 by bfranks ### ########.fr */
/* */
/* ************************************************************************** */
/* see 'ft_toupper.c' as it is the same but reverse*/
#include "libft.h"
/*#include <stdio.h>*/
int ft_tolower(int c)
{
if (c >= 'A' && c <= 'Z')
{
c = c + 32;
}
return (c);
}
/*
int main(void)
{
int b;
b = ft_tolower('t');
printf("%d\n", b);
return (0);
}*/