-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalpha.c
29 lines (26 loc) · 1.12 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
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yuske <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/21 15:42:25 by yuske #+# #+# */
/* Updated: 2023/03/31 04:45:58 by yuske ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/**
* @brief
*
* @param chr
* @return int
*/
int ft_isalpha(int chr)
{
return (ft_isupper(chr) || ft_islower(chr));
}
// int ft_isalpha(int chr)
// {
// return ((chr >= 'A' && chr <= 'Z') || (chr >= 'a' && chr <= 'z'));
// }