-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
24 lines (23 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: estettle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/26 10:55:17 by estettle #+# #+# */
/* Updated: 2024/09/26 10:55:18 by estettle ### ########.fr */
/* */
/* ************************************************************************** */
/**
* @brief Checks if a character is alphabetic.
*
* @param c The char to check, as an integer.
* @return 1 if the character is alphabetic, 0 if not.
*/
int ft_isalpha(int c)
{
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
return (1);
return (0);
}