-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathft_toupper.c
18 lines (16 loc) · 986 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: vbrazhni <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/07/01 15:37:44 by vbrazhni #+# #+# */
/* Updated: 2018/07/01 15:37:45 by vbrazhni ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
return (ft_islower(c) ? (c - 'a' + 'A') : c);
}