26 lines
1.0 KiB
C
26 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_striter.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tchivert <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2019/04/07 12:19:35 by tchivert #+# #+# */
|
|
/* Updated: 2019/09/04 05:13:32 by tchivert ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
void ft_striter(char *s, void (*f)(char *))
|
|
{
|
|
int i;
|
|
|
|
if (!s || !f)
|
|
return ;
|
|
i = 0;
|
|
while (s[i])
|
|
{
|
|
(*f)(&s[i]);
|
|
i++;
|
|
}
|
|
}
|