/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_striteri.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: scebula +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2015/11/26 10:40:23 by scebula #+# #+# */ /* Updated: 2015/11/26 10:41:03 by scebula ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_striteri(char *s, void (*f)(unsigned int, char *)) { unsigned int i; i = 0; while (s[i]) { f(i, &s[i]); i++; } }