-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalnum.c
24 lines (22 loc) · 1.04 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: azaghlou <azaghlou@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/30 22:02:08 by azaghlou #+# #+# */
/* Updated: 2022/10/04 12:35:15 by azaghlou ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int c)
{
if ((c <= '9' && c >= '0') || (c >= 'a' && c <= 'z') || (c >= 'A'
&& c <= 'Z'))
{
return (1);
}
else
return (0);
}