-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalpha.c
40 lines (36 loc) · 1.36 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
30
31
32
33
34
35
36
37
38
39
40
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zakchouc <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/06 11:34:32 by zakchouc #+# #+# */
/* Updated: 2024/12/02 22:41:25 by zakchouc ### ########.fr */
/* */
/* ************************************************************************** */
/**
* @file ft_isalpha.c
* @author Ziyad A. Dev ([email protected])
* @brief
* @version 0.1
* @date 2023-12-05
*
* @copyright Copyright (c) 2023
*
*/
#include "libft.h"
int ft_isalpha(int c)
{
if (((c >= 'A') && (c <= 'Z')) || ((c >= 'a') && (c <= 'z')))
return (1);
else
return (0);
}
// int main(void)
// {
// printf("is alpha ? : %d\n", isalpha('2'));
// printf("is alpha ? : %d\n", isalpha('a'));
// printf("is alpha ? : %d\n", isalpha('H'));
// return (0);
// }