aboutsummaryrefslogtreecommitdiff
path: root/ft_striter.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_striter.c')
-rw-r--r--ft_striter.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ft_striter.c b/ft_striter.c
index a3a2306..f410d24 100644
--- a/ft_striter.c
+++ b/ft_striter.c
@@ -6,12 +6,16 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/07 10:38:16 by cacharle #+# #+# */
-/* Updated: 2019/10/07 10:38:24 by cacharle ### ########.fr */
+/* Updated: 2019/11/20 02:01:32 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
+#include "libft.h"
+
void ft_striter(char *s, void (*f)(char *))
{
+ if (s == NULL || f == NULL)
+ return ;
while (*s)
(*f)(s++);
}