21 lines
1016 B
C
21 lines
1016 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_striteri.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tosuman <timo42@proton.me> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/06/09 14:47:33 by tosuman #+# #+# */
|
|
/* Updated: 2023/06/09 14:47:34 by tosuman ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
void ft_striteri(char *s, void (*f)(unsigned int, char*))
|
|
{
|
|
int idx;
|
|
|
|
idx = -1;
|
|
while (s[++idx])
|
|
(f)(idx, &s[idx]);
|
|
}
|