-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
executable file
·27 lines (27 loc) · 1.11 KB
/
ft_toupper.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dacarret <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/26 15:22:35 by dacarret #+# #+# */
/* Updated: 2024/09/26 15:25:58 by dacarret ### ########.fr */
/* */
/* ************************************************************************** */
/*#include <stdio.h>*/
int ft_toupper(int c)
{
if (c >= 'a' && c <= 'z')
{
c = c - 32;
}
return (c);
}
/*int main(void)
{
char w = 't';
int s = ft_toupper(w);
printf("%c\n", s);
return (0);
}*/