/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_foreach.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/08/12 12:28:09 by jhalford #+# #+# */ /* Updated: 2016/08/13 16:21:58 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ void ft_foreach(int *tab, int length, void (*f)(int)) { int i; i = 0; while (i < length) { f(tab[i]); i++; } }