ft_toupper

This commit is contained in:
Tanguy MAZE
2018-04-04 14:23:48 +02:00
parent eeeef79e4c
commit dad84d85db
2 changed files with 21 additions and 2 deletions

18
ft_toupper.c Normal file
View File

@@ -0,0 +1,18 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/04 14:06:21 by tmaze #+# #+# */
/* Updated: 2018/04/04 14:20:19 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
return ((c >= 'a' && c <= 'z') ? c - 32 : c);
}