/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_todigit.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/15 10:37:57 by cacharle #+# #+# */ /* Updated: 2020/02/12 23:11:55 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_todigit(int c) { if (!ft_isdigit(c)) return (-1); return (c & 0x0F); }