-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
28 lines (24 loc) · 1.09 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
23
24
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: youkim <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/05/05 20:59:15 by youkim #+# #+# */
/* Updated: 2021/05/10 11:18:26 by youkim ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
static int st_islower(int c)
{
return ('a' <= c && c <= 'z');
}
static int st_isupper(int c)
{
return ('A' <= c && c <= 'Z');
}
int ft_isalpha(int c)
{
return (st_islower(c) || st_isupper(c));
}