25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_any.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/06/23 10:51:03 by whaffman #+# #+# */
|
|
/* Updated: 2024/06/23 12:27:02 by whaffman ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <stdlib.h>
|
|
|
|
int ft_any(char **tab, int(*f)(char*))
|
|
{
|
|
while (*tab)
|
|
{
|
|
if (f(*tab)
|
|
return (1);
|
|
tab++;
|
|
}
|
|
return (0);
|
|
}
|