stris compiles....
This commit is contained in:
parent
cffdb8c72e
commit
d962542643
3 changed files with 6 additions and 5 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
# By: jhalford <jack@crans.org> +#+ +:+ +#+ #
|
# By: jhalford <jack@crans.org> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2017/02/07 16:09:36 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_strdup.c\
|
||||||
str/ft_strequ.c\
|
str/ft_strequ.c\
|
||||||
str/ft_strinsert.c\
|
str/ft_strinsert.c\
|
||||||
|
str/ft_stris.c\
|
||||||
str/ft_striter.c\
|
str/ft_striter.c\
|
||||||
str/ft_striteri.c\
|
str/ft_striteri.c\
|
||||||
str/ft_strjoin.c\
|
str/ft_strjoin.c\
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/02/18 13:05:53 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);
|
size_t ft_strcspn(char *s, const char *delim);
|
||||||
|
|
||||||
char *ft_path_notdir(char *path);
|
char *ft_path_notdir(char *path);
|
||||||
int ft_stris(char *str, (*f)(char *str));
|
int ft_stris(char *str, int (*f)());
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,13 @@
|
||||||
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/03/02 15:11:28 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"
|
#include "libft.h"
|
||||||
|
|
||||||
int ft_stris(char *str, (*f)(char *str))
|
int ft_stris(char *str, int (*f)())
|
||||||
{
|
{
|
||||||
while (*str)
|
while (*str)
|
||||||
if (!(f)(*str++))
|
if (!(f)(*str++))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue