/* ************************************************************************** */ /* */ /* :::::::: */ /* get_next_line_bonus.h :+: :+: :+: */ /* +:+ */ /* By: djonker +#+ */ /* +#+ */ /* Created: 2020/12/19 06:09:11 by djonker #+# #+# */ /* Updated: 2023/02/16 17:28:49 by houtworm ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef GET_NEXT_LINE_BONUS_H # define GET_NEXT_LINE_BONUS_H # include "get_next_line_bonus.h" # include # include # include # ifndef BUFFER_SIZE # define BUFFER_SIZE 300 # endif struct s_gnl { char b[BUFFER_SIZE + 1]; int fd; }; int get_next_line(int fd, char **line); char *gnl_substr(char const *s, unsigned int start, size_t len); void *gnl_memcpy(void *dst, const void *src, size_t n); size_t gnl_strlen(char *str); void gnl_bzero(void *s, size_t n); char *gnl_strjoin(char const *s1, char const *s2); #endif