-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_tolower.c
33 lines (31 loc) · 1.14 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sde-silv <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/05 16:08:14 by sde-silv #+# #+# */
/* Updated: 2023/06/12 15:07:39 by sde-silv ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
#include<ctype.h>
#include<stdio.h>
*/
int ft_tolower(int c)
{
if ('A' <= c && c <= 'Z')
return (c + 32);
else
return (c);
}
/*
int main(void)
{
printf("tolower: %c\n", tolower('Z'));
printf("ft_tolower: %c\n", ft_tolower('Z'));
return (0);
}
*/