-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
26 lines (24 loc) · 1.08 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gudaniel <gudaniel@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/09 14:00:27 by gudaniel #+# #+# */
/* Updated: 2024/04/09 14:00:30 by gudaniel ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
if (c >= 97 && c <= 122)
c -= 32;
return (c);
}
/* int main()
{
printf("%d\n", ft_toupper('a'));
printf("%d\n", ft_toupper('a'));
return (0);
} */