-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
18 lines (17 loc) · 980 Bytes
/
ft_toupper.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nwatanab <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/11/05 21:52:09 by nwatanab #+# #+# */
/* Updated: 2020/11/20 11:14:03 by nwatanab ### ########.fr */
/* */
/* ************************************************************************** */
int ft_toupper(int c)
{
while (c >= 'a' && c <= 'z')
return (c - 32);
return (c);
}