diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-11-20 02:03:56 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-11-20 02:03:56 +0100 |
| commit | a983b06df18647cf63fadad5b36f472e06f1075f (patch) | |
| tree | 26d02de02b9ff31febcdb9bc0d76e7b99d2e3dbe /ft_striter.c | |
| parent | a46f13dc1fef2af96f418984af9db6acfeaeb581 (diff) | |
| download | libft-a983b06df18647cf63fadad5b36f472e06f1075f.tar.gz libft-a983b06df18647cf63fadad5b36f472e06f1075f.tar.bz2 libft-a983b06df18647cf63fadad5b36f472e06f1075f.zip | |
Protected pre 2019 functions
Diffstat (limited to 'ft_striter.c')
| -rw-r--r-- | ft_striter.c | 6 |
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++); } |
