libft
src
ft_striter.c
Go to the documentation of this file.
1
/* ************************************************************************** */
3
/* */
4
/* ::: :::::::: */
5
/* ft_striter.c :+: :+: :+: */
6
/* +:+ +:+ +:+ */
7
/* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8
/* +#+#+#+#+#+ +#+ */
9
/* Created: 2019/09/05 00:39:55 by unite #+# #+# */
10
/* Updated: 2020/07/16 02:46:28 by unite ### ########.fr */
11
/* */
12
/* ************************************************************************** */
13
14
#include "
libft.h
"
15
25
void
ft_striter
(
char
*s,
void
(*f)(
char
*))
26
{
27
if
(!s || !f)
28
return ;
29
while
(*s)
30
f(s++);
31
}
ft_striter
void ft_striter(char *s, void(*f)(char *))
Applies a function to characters of a string.
Definition:
ft_striter.c:25
libft.h
Generated by
1.8.16