-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalpha.c
More file actions
32 lines (30 loc) · 1.16 KB
/
ft_isalpha.c
File metadata and controls
32 lines (30 loc) · 1.16 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sde-silv <sde-silv@student.42berlin.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/02 16:38:23 by sde-silv #+# #+# */
/* Updated: 2023/06/12 14:48:18 by sde-silv ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
#include<ctype.h>
#include<stdio.h>
*/
int ft_isalpha(int c)
{
if (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z'))
return (1024);
return (0);
}
/*
int main(void)
{
printf ("isalpha: %d", isalpha('a'));
printf ("\nft_isalpha: %d \n", ft_isalpha('a'));
return (0);
}
*/