26 lines
1.0 KiB
C
26 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_striteri.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: scebula <scebula@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2015/11/26 10:40:23 by scebula #+# #+# */
|
|
/* Updated: 2015/11/26 10:41:03 by scebula ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
void ft_striteri(char *s, void (*f)(unsigned int, char *))
|
|
{
|
|
unsigned int i;
|
|
|
|
i = 0;
|
|
while (s[i])
|
|
{
|
|
f(i, &s[i]);
|
|
i++;
|
|
}
|
|
}
|