-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_striter.c
More file actions
23 lines (20 loc) · 1 KB
/
ft_striter.c
File metadata and controls
23 lines (20 loc) · 1 KB
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: nparker <nparker@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/12/05 17:47:46 by nparker #+# #+# */
/* Updated: 2018/12/05 17:58:59 by nparker ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_striter(char *s, void (*f)(char *))
{
size_t i;
i = 0;
if (s && f)
while (*(s + i))
f(s + i++);
}