ft_toupper - gabrielcoelhodacunha-old/42sp-libft GitHub Wiki

Description

Converts a lowercase letter c to its corresponding uppercase.

Implementation

int	ft_toupper(int c)
{
	if (ft_islower(c))
		return (c - 32);
	return (c);
}

static int	ft_islower(int c)
{
	return (c >= 'a' && c <= 'z');
}

References