-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isxdigit.c
20 lines (18 loc) · 1.02 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: lenzo-pe <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/03/11 16:39:30 by lenzo-pe #+# #+# */
/* Updated: 2021/05/07 16:47:23 by lenzo-pe ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_ctype.h"
int ft_isxdigit(int c)
{
if (ft_isdigit(c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f'))
return (1);
return (0);
}