-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_tolower.c
38 lines (31 loc) · 1.32 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
34
35
36
37
38
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ochurko <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/14 16:29:04 by ochurko #+# #+# */
/* Updated: 2023/11/15 12:26:55 by ochurko ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_tolower(int c)
{
if (c >= 65 && c <= 90)
c += 32;
return (c);
}
/*
int main() {
char lowercase = '!';
char lowercase1 = '!';
char uppercase = tolower(lowercase);
char uppercase1 = ft_tolower(lowercase1);
printf("Original character: %c\n", lowercase);
printf("Uppercase character: %c\n", uppercase);
printf("Original character: %c\n", lowercase1);
printf("Uppercase character: %c\n", uppercase1);
return 0;
}
*/