22 lines
1.0 KiB
C
22 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_isalpha.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: yantoine <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/11/07 10:02:38 by yantoine #+# #+# */
|
|
/* Updated: 2023/11/08 08:06:13 by hexplor ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
#include "libft.h"
|
|
|
|
int ft_isalpha(int c)
|
|
{
|
|
if ((c >= 65 && c <= 90) \
|
|
|| (c >= 97 && c <= 122))
|
|
return (1);
|
|
else
|
|
return (0);
|
|
}
|