-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_tolower.c
34 lines (32 loc) · 1.17 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rgerdzhi <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/28 21:52:50 by rgerdzhi #+# #+# */
/* Updated: 2024/07/08 18:00:33 by rgerdzhi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_tolower(int c)
{
if (c > 64 && c < 91)
{
c += 32;
}
return (c);
}
/*
int main(int argc, char *argv[])
{
char c;
c = argv[1][0];
c = tolower(c);
printf("Tolower is: %c\n", tolower(c));
c = ft_tolower(c);
printf("My function: %c\n", ft_tolower(c));
return 0;
}
*/