-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isxdigit.c
20 lines (18 loc) · 1 KB
/
ft_isxdigit.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isxdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: Aamjahed <aamjahed@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/11 15:24:08 by Aamjahed #+# #+# */
/* Updated: 2023/09/25 08:38:52 by Aamjahed ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isxdigit(int c)
{
return ((c >= '0' && c <= '9')
|| (c >= 'a' && c <= 'f')
|| (c >= 'A' && c <= 'F'));
}