42-archive/libft/src/str/ft_striteri.c
2016-09-23 00:52:35 +02:00

12 lines
178 B
C

#include "libft.h"
void ft_striteri(char *s, void (*f)(unsigned int, char *))
{
size_t size;
size_t i;
size = ft_strlen(s);
i = -1;
while (++i < size)
(*f)(i, s + i);
}