get_next_line / get_next_line_bonus.h 14 commits
29-10-2026
22 lines 462 B
 1#ifndef GET_NEXT_LINE_BONUS_H
 2# define GET_NEXT_LINE_BONUS_H
 3
 4# ifndef BUFFER_SIZE
 5#  define BUFFER_SIZE 256
 6# endif
 7
 8# ifndef MAX_FD
 9#  define MAX_FD 512
10# endif
11
12# include <stddef.h>
13
14char    *get_next_line(int fd);
15
16size_t  ft_strlen(const char *s);
17char    *ft_strchr(const char *s, int c);
18void    *ft_memcpy(void *dest, const void *src, size_t n);
19char    *ft_substr(char const *s, size_t len);
20char    *ft_strjoin(char const *s1, char const *s2);
21
22#endif