26 lines
1.0 KiB
C
26 lines
1.0 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_striteri.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: gbrochar <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2015/11/28 21:02:16 by gbrochar #+# #+# */
|
||
|
/* Updated: 2015/11/29 10:30:40 by gbrochar ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
void ft_striteri(char *s, void (*f)(unsigned int, char *s))
|
||
|
{
|
||
|
unsigned int i;
|
||
|
|
||
|
i = 0;
|
||
|
while (s[i])
|
||
|
{
|
||
|
f(i, &s[i]);
|
||
|
i++;
|
||
|
}
|
||
|
}
|