/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_stris.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: ariard +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/02 15:11:28 by ariard #+# #+# */ /* Updated: 2017/03/07 11:44:29 by ariard ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_stris(char *str, int (*f)()) { while (*str) if (!(f)(*str++)) return (0); return (1); }