/* ************************************************************************** */ /* */ /* ::: o_ :::::: ::: */ /* ft_striteri.c :+: / :+::+: :+: */ /* +:+ > +:++:+ +:+ */ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2024/10/10 17:00:28 by whaffman #+#+# #+#+# #+# #+# | */ /* Updated: 2024/10/10 17:00:28 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ #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++; } }