-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_tolower.c
More file actions
28 lines (26 loc) · 1.11 KB
/
ft_tolower.c
File metadata and controls
28 lines (26 loc) · 1.11 KB
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: sudaniel <sudaniel@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/08 16:49:21 by sudaniel #+# #+# */
/* Updated: 2024/10/08 16:54:09 by sudaniel ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_tolower(int c)
{
if (c >= 'A' && c <= 'Z')
return (c + 32);
return (c);
}
/*
int main(void)
{
printf("%c\t%c\n", ft_tolower('R'), ft_tolower('$'));
printf("%c\t%c\n", tolower('R'), tolower('$'));
return (0);
}
*/