-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalnum.c
25 lines (23 loc) · 1.07 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
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mgraf <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/28 14:12:32 by mgraf #+# #+# */
/* Updated: 2022/12/02 14:45:27 by mgraf ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int arg)
{
if (arg >= 65 && arg <= 90)
return (1);
else if (arg >= 97 && arg <= 122)
return (1);
else if (arg >= 48 && arg <= 57)
return (1);
else
return (0);
}