/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_hasdigit.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/02/25 16:16:40 by tmaze #+# #+# */ /* Updated: 2019/02/28 16:18:26 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_hasdigit(char *s) { int i; i = 0; while (s[i] && !ft_isdigit(s[i])) i++; return (ft_isdigit(s[i])); }