libft/char/ft_isalpha.c
Raphael 4c6a17811f
fix(char/ischar): fix the work of the function
- Didn't now why the moulinette was working
2025-09-04 18:54:19 +02:00

24 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/06 11:58:37 by rparodi #+# #+# */
/* Updated: 2025/09/04 18:13:06 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
/**
* @brief Check if the character is alpha
*
* @param c the character
* @return the character if alpha or 0 if not
*/
int ft_isalpha(int c)
{
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
return (1);
return (0);
}