구현
- 문자열을 돌리면서 함수 포인터에 삽입
코드
c
void ft_striteri(char *s, void (*f)(unsigned int, char *))
{
int i;
i = 0;
while (*s != '\0')
{
f(i, s);
i++;
s++;
}
}