-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalpha.c
25 lines (23 loc) · 1.14 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: pix <pix@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/17 18:31:21 by pix #+# #+# */
/* Updated: 2022/04/04 02:54:40 by pix ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/**
* @brief Checks if c is an alphabetic character.
*
* @param c Character value to check
*
* @return (int) Nonzero if character is alphabetic and zero if not
*/
int ft_isalpha(int c)
{
return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z' ));
}