diff --git a/libftasm/Makefile b/libftasm/Makefile index 3e28114c..68bcfb3a 100644 --- a/libftasm/Makefile +++ b/libftasm/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/libftasm/includes/str.h b/libftasm/includes/str.h index eeadb792..0a91a391 100644 --- a/libftasm/includes/str.h +++ b/libftasm/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/libftasm/src/str/ft_stris.c b/libftasm/src/str/ft_stris.c index 22d478e0..71fb0b64 100644 --- a/libftasm/src/str/ft_stris.c +++ b/libftasm/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++))