-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_isalnum.c
executable file
·20 lines (18 loc) · 1012 Bytes
/
ft_isalnum.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rel-fila <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/06 10:58:55 by rel-fila #+# #+# */
/* Updated: 2022/10/16 10:38:46 by rel-fila ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int a)
{
if (ft_isdigit(a) == 1 || ft_isalpha(a) == 1)
return (1);
return (0);
}