-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
executable file
·24 lines (22 loc) · 1021 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
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: wdebs <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/09/21 16:19:26 by wdebs #+# #+# */
/* Updated: 2016/09/21 16:30:12 by wdebs ### ########.fr */
/* */
/* ************************************************************************** */
int ft_toupper(int c)
{
int upper;
if (c >= 'a' && c <= 'z')
{
upper = c - 32;
return (upper);
}
else
return (c);
}