-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_tolower.c
30 lines (26 loc) · 1.1 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: edegraev <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/07 10:27:22 by edegraev #+# #+# */
/* Updated: 2023/11/16 09:20:59 by edegraev ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_tolower(int c)
{
if (c >= 65 && c <= 90)
return (c + 32);
return (c);
}
// #include <stdio.h>
// int main(void)
// {
// char c;
// c = 'A';
// printf("%c\n", ft_tolower(c));
// return (0);
// }