-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalnum.c
21 lines (20 loc) · 1.03 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lumfred <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/04 14:10:26 by lumfred #+# #+# */
/* Updated: 2021/10/18 16:40:16 by lumfred ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int ch)
{
if ((ch >= '0' && ch <= '9')
|| (ch >= 'A' && ch <= 'Z')
|| (ch >= 'a' && ch <= 'z'))
return (ch);
return (0);
}