42-archive/42sh/libft/src/str/ft_stris.c
2017-03-17 00:05:10 +01:00

21 lines
1,017 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_stris.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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);
}