-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
25 lines (22 loc) · 1.18 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ssandova <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/16 16:22:59 by ssandova #+# #+# */
/* Updated: 2023/10/20 22:48:08 by ssandova ### ########.fr */
/* */
/* ************************************************************************** */
/*The isalpha() function tests for any character for which isupper(3) or
islower(3) is true. The value of the argument must be representable as an
unsigned char or the value of EOF.*/
#include "libft.h"
int ft_isalpha(int c)
{
if ((c >= 65 && c <= 90) || (c >= 97 && c <= 122))
return (1);
else
return (0);
}