-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalnum.c
executable file
·17 lines (16 loc) · 1009 Bytes
/
ft_isalnum.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tseguier <tseguier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/11/22 06:33:57 by tseguier #+# #+# */
/* Updated: 2014/03/27 18:46:56 by jcoignet ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isalnum(int c)
{
return ((c >= 48 && c <= 57) || (c <= 122 && c >= 97)
|| (c >= 65 && c <= 90) ? 1 : 0);
}