/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_ishexdigit.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gbrochar +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/05/05 23:22:51 by gbrochar #+# #+# */ /* Updated: 2016/05/05 23:24:26 by gbrochar ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_ishexdigit(int c) { if (ft_isdigit(c) || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F')) return (1); return (0); }