aboutsummaryrefslogtreecommitdiff
path: root/c11/ex02/ft_any.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-07-19 07:04:04 +0200
committerCharles <sircharlesaze@gmail.com>2019-07-19 07:04:04 +0200
commit8b6e91bdb56bc01a588718472546f2a88e750b48 (patch)
tree654ba9e8216c688bb3d6a2e5d67526ae8ec4b874 /c11/ex02/ft_any.c
parent880102ae9358db130ef67cc9a7177a1e1de76875 (diff)
downloadpiscine-8b6e91bdb56bc01a588718472546f2a88e750b48.tar.gz
piscine-8b6e91bdb56bc01a588718472546f2a88e750b48.tar.bz2
piscine-8b6e91bdb56bc01a588718472546f2a88e750b48.zip
c10 done?, c11 moulinetted (ex04, ex06 need correction)
Diffstat (limited to 'c11/ex02/ft_any.c')
-rw-r--r--c11/ex02/ft_any.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/c11/ex02/ft_any.c b/c11/ex02/ft_any.c
index 100fd12..ee09b41 100644
--- a/c11/ex02/ft_any.c
+++ b/c11/ex02/ft_any.c
@@ -6,11 +6,13 @@
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/16 21:23:26 by cacharle #+# #+# */
-/* Updated: 2019/07/16 21:32:21 by cacharle ### ########.fr */
+/* Updated: 2019/07/18 11:03:40 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
-int ft_any(char **tab, int(*f)(char*))
+#include <stdlib.h>
+
+int ft_any(char **tab, int (*f)(char*))
{
while (*tab != NULL)
if ((*f)(*tab++))