-
Notifications
You must be signed in to change notification settings - Fork 2
/
ft_toupper.c
19 lines (18 loc) · 991 Bytes
/
ft_toupper.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rlambert <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/04 16:07:33 by rlambert #+# #+# */
/* Updated: 2014/11/04 16:08:53 by rlambert ### ########.fr */
/* */
/* ************************************************************************** */
int ft_toupper(int c)
{
if (97 <= c && c <= 122)
return (c - 'a' + 'A');
else
return (c);
}