-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalnum.c
27 lines (25 loc) · 1.08 KB
/
ft_isalnum.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: asousa-n <asousa-n@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/27 17:29:00 by asousa-n #+# #+# */
/* Updated: 2022/10/31 13:53:20 by asousa-n ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
int isalnum(int c)
{
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')
|| (c >= '0' && c <= '9'))
{
return (1);
}
return (0);
}
/* int main ()
{
printf("%d", isalnum('#'));
} */