/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* get_next_line_bonus.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cchauvet 1023) return (NULL); buf2 = stash[fd]; if (ft_strchr(stash[fd], '\n') == -1) { buf1 = ft_getline(fd); buf2 = ft_strfjoin(stash[fd], buf1); } buf1 = ft_getreturn(buf2); stash[fd] = ft_getextra(buf2); if (buf1 == NULL || buf2 == NULL) { free(stash[fd]); free(buf1); } free(buf2); return (buf1); }