-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_striter.c
23 lines (21 loc) · 1013 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: mmakwakw <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/08/15 09:34:09 by mmakwakw #+# #+# */
/* Updated: 2016/08/15 10:58:12 by mmakwakw ### ########.fr */
/* */
/* ************************************************************************** */
void ft_striter(char *s, void (*f)(char *))
{
unsigned int i;
i = 0;
while (s[i] != '\0')
{
f(s + 1);
i++;
}
}