-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalnum.c
More file actions
26 lines (24 loc) · 1.04 KB
/
ft_isalnum.c
File metadata and controls
26 lines (24 loc) · 1.04 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mobouifr <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/01 20:04:30 by mobouifr #+# #+# */
/* Updated: 2023/12/16 14:50:57 by mobouifr ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int a)
{
if ((a >= 'A' && a <= 'Z') || (a >= 'a' && a <= 'z') || (a >= '0'
&& a <= '9'))
{
return (1);
}
else
{
return (0);
}
}