/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_striteri.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: vvobis +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/07 17:24:08 by vvobis #+# #+# */ /* Updated: 2024/04/09 19:27:07 by vvobis ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_striteri(char const *s, void (*f)(unsigned int, char *)) { unsigned int i; if (!s || !f) return ; i = 0; while (s[i]) { f(i, (char *)&s[i]); i++; } }