42-archive/libft/srcs/str/ft_stris.c
2017-03-31 21:42:02 +02:00

21 lines
1,015 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_stris.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/02 15:11:28 by ariard #+# #+# */
/* Updated: 2017/03/20 16:01:06 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_stris(char *str, int (*f)())
{
while (*str)
if (!(f)(*str++))
return (0);
return (1);
}