24 lines
1.0 KiB
C
24 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_striter.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2018/11/14 21:16:53 by hulamy #+# #+# */
|
|
/* Updated: 2019/03/25 15:21:14 by hulamy ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
/*
|
|
** apply function f to each element of string s
|
|
*/
|
|
|
|
#include "libft.h"
|
|
|
|
void ft_striter(char *s, void (*f)(char *))
|
|
{
|
|
while (s && *s && f)
|
|
f(s++);
|
|
}
|