-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_striteri.c
22 lines (20 loc) · 1.02 KB
/
ft_striteri.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_striteri.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sonyacorcoran <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/08/24 12:14:05 by sonyacorcor #+# #+# */
/* Updated: 2023/08/24 12:18:10 by sonyacorcor ### ########.fr */
/* */
/* ************************************************************************** */
void ft_striteri(char *s, void (*f)(unsigned int, char*))
{
int index;
index = -1;
if (!s || !f)
return ;
while (s[++index])
f(index, &s[index]);
}