-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
22 lines (20 loc) · 1.01 KB
/
ft_isalpha.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mokhan <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/07 17:33:17 by mokhan #+# #+# */
/* Updated: 2023/09/07 17:33:18 by mokhan ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int a)
{
if (a >= 'A' && a <= 'Z')
return (1);
else if (a >= 'a' && a <= 'z')
return (2);
return (0);
}