42_cub3d/Libft/ft_toupper.c
2024-10-09 03:35:09 +02:00

19 lines
987 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: grobledo <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/02 20:19:23 by grobledo #+# #+# */
/* Updated: 2023/02/02 20:19:25 by grobledo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
if (c >= 97 && c <= 122)
c -= 32;
return (c);
}