-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
18 lines (16 loc) · 985 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: dskrypny <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/10/30 19:16:16 by dskrypny #+# #+# */
/* Updated: 2017/11/18 14:35:03 by dskrypny ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
return (c < 123 && c > 96) ? (c - 32) : (c);
}