/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_any.c                                           :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: jayang <[email protected]>                      +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2022/02/17 08:35:16 by jayang            #+#    #+#             */
/*   Updated: 2022/02/17 20:48:37 by jayang           ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

int	ft_any(char **tab, int(*f)(char *))
{
	int	idx;

	idx = 0;
	while (tab[idx])
	{
		if (f(tab[idx]) != 0)
			return (1);
		idx++;
	}
	return (0);
}