From a983b06df18647cf63fadad5b36f472e06f1075f Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 20 Nov 2019 02:03:56 +0100 Subject: Protected pre 2019 functions --- ft_striter.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ft_striter.c') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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++); } -- cgit