-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_ishexa.c
19 lines (17 loc) · 1021 Bytes
/
ft_ishexa.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_ishexa.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nvienot <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/01/21 15:07:21 by nvienot #+# #+# */
/* Updated: 2019/02/17 19:47:23 by nvienot ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_ishexa(int c)
{
return ((ft_isdigit(c)) || (c >= 'A' && c <= 'F') \
|| (c >= 'a' && c <= 'f'));
}