-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_striter.c
executable file
·18 lines (17 loc) · 985 Bytes
/
ft_striter.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_striter.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: akharrou <akharrou@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/19 07:23:13 by akharrou #+# #+# */
/* Updated: 2019/02/21 15:35:01 by akharrou ### ########.fr */
/* */
/* ************************************************************************** */
void ft_striter(char *s, void (*f)(char *))
{
if (s && *f)
while (*s)
(*f)(&(*s++));
}