/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* get_next_line_bonus.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: hulamy +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/12/16 14:07:51 by hulamy #+# #+# */ /* Updated: 2019/12/16 14:11:18 by hulamy ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef GET_NEXT_LINE_BONUS_H # define GET_NEXT_LINE_BONUS_H # include # include # include typedef struct s_gnlist { int lfd; char *string; struct s_gnlist *next; } t_gnlist; int get_next_line(const int fd, char **line); int multi_fd(int fd, t_gnlist **lst); char *ft_strjoinfree(char const *s1, char const *s2); int hasnewline(char *str, t_gnlist *lst, char **line); void free_lst(t_gnlist **lst, const int fd); size_t ft_strlen(const char *str); void *ft_memmove(void *dst, const void *src, size_t len); char *ft_strchr(const char *s, int c); char *ft_strdup(const char *src); #endif