24 lines
1022 B
C
24 lines
1022 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_striteri.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/11/08 17:36:38 by dgaillet #+# #+# */
|
|
/* Updated: 2025/11/08 17:40:42 by dgaillet ### ########lyon.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
void ft_striteri(char *s, void (*f)(unsigned int, char*))
|
|
{
|
|
unsigned int i;
|
|
|
|
i = 0;
|
|
while (s[i])
|
|
{
|
|
f(i, &s[i]);
|
|
i++;
|
|
}
|
|
}
|