Cub3D/libft/char/ft_toupper.c
2024-10-31 17:24:36 +01:00

26 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/07 10:44:26 by rparodi #+# #+# */
/* Updated: 2024/10/31 12:55:14 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/**
* @brief convert the lower case to upper case
*
* @param c the character
* @return the character to upper case if is on lower
*/
int ft_toupper(int c)
{
if (c >= 'a' && c <= 'z')
c -= 32;
return (c);
}