-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_tolower.c
More file actions
33 lines (30 loc) · 1.29 KB
/
ft_tolower.c
File metadata and controls
33 lines (30 loc) · 1.29 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
29
30
31
32
33
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_tolower.c :+: :+: */
/* +:+ */
/* By: jsmidt <jsmidt@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/10/09 15:48:34 by jsmidt #+# #+# */
/* Updated: 2025/10/09 17:52:31 by jsmidt ######## odam.nl */
/* */
/* ************************************************************************** */
#include <ctype.h>
#include <stdio.h>
#include "libft.h"
int ft_tolower(int c)
{
if ((c >= 'A') && (c <= 'Z'))
c += 32;
return (c);
}
// int main(void)
// {
// printf("%c\n", ft_tolower('D'));
// printf("%c\n", ft_tolower('X'));
// printf("%c\n", ft_tolower('B'));
// printf("%c\n", ft_tolower('d'));
// printf("%c\n", ft_tolower('&'));
// printf("%c\n", ft_tolower('0'));
// printf("%c\n", tolower('D'));
// }