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