-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
22 lines (20 loc) · 1002 Bytes
/
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: azaghlou <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/01 11:14:58 by azaghlou #+# #+# */
/* Updated: 2022/10/04 10:59:40 by azaghlou ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int a)
{
if (a >= 97 && a <= 122)
{
return (a - 32);
}
return (a);
}