-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathft_isalpha.c
24 lines (21 loc) · 1.13 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adiaz-lo <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/05 13:40:52 by adiaz-lo #+# #+# */
/* Updated: 2020/01/13 12:19:44 by adiaz-lo ### ########.fr */
/* */
/* ************************************************************************** */
/*
** Function that checks if 'c' is an alphabetic character
** For further information, please check Standard C Library function
** 'isalpha(int c)'
*/
#include "libft.h"
int ft_isalpha(int c)
{
return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
}