-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathisalnum.c
27 lines (23 loc) · 1.13 KB
/
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ivolosci <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/23 19:21:39 by ivolosci #+# #+# */
/* Updated: 2017/11/23 19:21:40 by ivolosci ### ########.fr */
/* */
/* ************************************************************************** */
#include <ctype.h>
#include <stdio.h>
int ft_isalnum(int c)
{
return ((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || (c >= 97 && c <= 122));
}
int main(void)
{
printf("ft_isalnum: %d\n", ft_isalnum(35));
printf(" isalnum: %d\n", isalnum(35));
return 0;
}