/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_striteri.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/04 23:17:51 by erey-bet #+# #+# */ /* Updated: 2022/10/10 22:14:20 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_striteri(char *s, void (*f)(unsigned int, char*)) { unsigned int i; if (f == NULL || s == NULL) return ; i = -1; while (s[++i]) f(i, &s[i]); }