-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_tolower.c
28 lines (25 loc) · 1.11 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: iziane <iziane@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/07 14:34:45 by iziane #+# #+# */
/* Updated: 2024/03/10 11:39:41 by iziane ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include <ctype.h>
int ft_tolower(int c)
{
if (c >= 'A' && c <= 'Z')
c = c + 32;
return (c);
}
// int main(void)
// {
// printf("OG: %c\n", tolower('Z'));
// printf("Meine: %c\n", ft_tolower('S'));
// return (0);
// }