-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalnum.c
22 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
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: oelbouha <oelbouha@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/30 09:41:27 by oelbouha #+# #+# */
/* Updated: 2022/10/03 17:48:12 by oelbouha ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int s)
{
if (!((s >= 'a' && s <= 'z') || (s >= 'A' && s <= 'Z')
|| (s >= '0' && s <= '9')))
return (0);
else
return (1);
}