/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_isdigit.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/03 14:56:33 by jhalford #+# #+# */ /* Updated: 2016/11/03 14:56:34 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_isdigit(int c) { unsigned char a; a = (unsigned char)c; if (a >= '0' && a <= '9') return (a); return (0); }