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

Description

Converts a uppercase letter c to its corresponding lowercase.

Implementation

int	ft_tolower(int c)
{
	if (ft_isupper(c))
		return (c + 32);
	return (c);
}

static int	ft_isupper(int c)
{
	return (c >= 'A' && c <= 'Z');
}

References