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

Description

Checks if c is an ASCII uppercase or lowercase alphabet letter.

Implementation

int	ft_isalpha(int c)
{
	return (ft_isupper(c) || ft_islower(c));
}

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

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

References