-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalnum.c
More file actions
23 lines (21 loc) · 1.05 KB
/
ft_isalnum.c
File metadata and controls
23 lines (21 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: melkholy <melkholy@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/25 02:07:41 by melkholy #+# #+# */
/* Updated: 2022/02/08 05:23:11 by melkholy ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int x)
{
if (x >= '0' && x <= '9')
return (1);
else if ((x >= 'a' && x <= 'z') || (x >= 'A' && x <= 'Z'))
return (1);
else
return (0);
}