-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_striteri.c
20 lines (18 loc) · 1006 Bytes
/
ft_striteri.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_striteri.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gialexan <gialexan@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/15 15:48:36 by gialexan #+# #+# */
/* Updated: 2022/11/06 18:46:25 by gialexan ### ########.fr */
/* */
/* ************************************************************************** */
void ft_striteri(char *s, void (*f)(unsigned int, char *))
{
int i;
i = -1;
while (s[++i])
(f)(i, s + i);
}