From 0e9ac5bbb9204108e5dbd7b1c7c7316a51fffabe Mon Sep 17 00:00:00 2001 From: Jack Halford Date: Thu, 2 Mar 2017 16:55:07 +0100 Subject: [PATCH] stris compiles.... --- libft/Makefile | 3 ++- libft/includes/str.h | 4 ++-- libft/src/str/ft_stris.c | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/libft/Makefile b/libft/Makefile index 3e28114c..68bcfb3a 100644 --- a/libft/Makefile +++ b/libft/Makefile @@ -6,7 +6,7 @@ # By: jhalford +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2017/02/07 16:09:36 by jhalford #+# #+# # -# Updated: 2017/02/20 16:44:02 by jhalford ### ########.fr # +# Updated: 2017/03/02 16:21:52 by jhalford ### ########.fr # # # # **************************************************************************** # @@ -156,6 +156,7 @@ str/ft_strdel.c\ str/ft_strdup.c\ str/ft_strequ.c\ str/ft_strinsert.c\ +str/ft_stris.c\ str/ft_striter.c\ str/ft_striteri.c\ str/ft_strjoin.c\ diff --git a/libft/includes/str.h b/libft/includes/str.h index eeadb792..0a91a391 100644 --- a/libft/includes/str.h +++ b/libft/includes/str.h @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/18 13:05:53 by jhalford #+# #+# */ -/* Updated: 2017/03/02 15:14:08 by ariard ### ########.fr */ +/* Updated: 2017/03/02 16:54:21 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ @@ -66,6 +66,6 @@ char *ft_strtok(char *s, const char *delim); size_t ft_strcspn(char *s, const char *delim); char *ft_path_notdir(char *path); -int ft_stris(char *str, (*f)(char *str)); +int ft_stris(char *str, int (*f)()); #endif diff --git a/libft/src/str/ft_stris.c b/libft/src/str/ft_stris.c index 22d478e0..71fb0b64 100644 --- a/libft/src/str/ft_stris.c +++ b/libft/src/str/ft_stris.c @@ -6,13 +6,13 @@ /* By: ariard +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/02 15:11:28 by ariard #+# #+# */ -/* Updated: 2017/03/02 15:13:07 by ariard ### ########.fr */ +/* Updated: 2017/03/02 16:54:25 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" -int ft_stris(char *str, (*f)(char *str)) +int ft_stris(char *str, int (*f)()) { while (*str) if (!(f)(*str++))