diff options
Diffstat (limited to 'ft_striteri.c')
| -rw-r--r-- | ft_striteri.c | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/ft_striteri.c b/ft_striteri.c index 305138f..0d3ccdf 100644 --- a/ft_striteri.c +++ b/ft_striteri.c @@ -1,11 +1,23 @@ -void ft_striteri(char *s, void (*f)(unsigned int, char *)) +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_striteri.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/10/07 10:33:09 by cacharle #+# #+# */ +/* Updated: 2019/10/07 10:37:37 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +void ft_striteri(char *s, void (*f)(unsigned int, char *)) { - unsigned int i; + unsigned int i; - i = 0; - while (s[i]) - { - (*f)(i, &s[i]); - i++; - } + i = 0; + while (s[i]) + { + (*f)(i, &s[i]); + i++; + } } |
