20 lines
997 B
C
20 lines
997 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_striter.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2016/12/01 17:36:39 by gtertysh #+# #+# */
|
|
/* Updated: 2016/12/01 17:37:33 by gtertysh ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
void ft_striter(char *s, void (*f)(char *))
|
|
{
|
|
if (s && f)
|
|
while (*s)
|
|
f(s++);
|
|
}
|