push_swap/libft/ft_toupper.c
Etienne Rey-bethbeder e35b9d3e9e Add libft
2022-12-08 18:06:06 +01:00

19 lines
972 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/27 10:01:53 by erey-bet #+# #+# */
/* Updated: 2022/09/27 10:04:19 by erey-bet ### ########.fr */
/* */
/* ************************************************************************** */
int ft_toupper(int c)
{
if (c >= 'a' && c <= 'z')
c = c - 32;
return (c);
}