21 lines
1,015 B
C
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);
|
|
}
|