/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_striteri.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: whaffman +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/07/05 18:42:09 by whaffman #+# #+# */ /* Updated: 2024/07/10 16:07:16 by whaffman ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_striteri(char *s, void (*f)(unsigned int, char*)) { unsigned int i; i = 0; if (!s) return ; while (s[i]) { f(i, &s[i]); i++; } }