aboutsummaryrefslogtreecommitdiff
path: root/ft_striteri.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_striteri.c')
-rw-r--r--ft_striteri.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ft_striteri.c b/ft_striteri.c
index 0d3ccdf..05f15d4 100644
--- a/ft_striteri.c
+++ b/ft_striteri.c
@@ -6,14 +6,18 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/07 10:33:09 by cacharle #+# #+# */
-/* Updated: 2019/10/07 10:37:37 by cacharle ### ########.fr */
+/* Updated: 2019/11/20 02:01:41 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
+#include "libft.h"
+
void ft_striteri(char *s, void (*f)(unsigned int, char *))
{
unsigned int i;
+ if (s == NULL || f == NULL)
+ return ;
i = 0;
while (s[i])
{