-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_toupper.c
18 lines (16 loc) · 993 Bytes
/
ft_toupper.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ccline <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/01 00:00:44 by ccline #+# #+# */
/* Updated: 2019/10/05 11:40:16 by ccline ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
return ((c >= 'a' && c <= 'z') ? c - 'a' + 'A' : c);
}