/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_striteri.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/10/20 16:23:41 by narnaud #+# #+# */ /* Updated: 2021/11/15 11:28:48 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_striteri(char *s, void (*f)(unsigned int, char*)) { unsigned int i; i = 0; if (!s || !f) return ; while (s[i]) { f(i, s + i); i++; } }