34 lines
1.3 kB
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* get_next_line_bonus.h :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: mleitao <marvin@42.fr> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2026/04/23 19:44:38 by mleitao #+# #+# */
9/* Updated: 2026/04/23 19:47:09 by mleitao ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#ifndef GET_NEXT_LINE_BONUS_H
14# define GET_NEXT_LINE_BONUS_H
15
16# ifndef BUFFER_SIZE
17# define BUFFER_SIZE 256
18# endif
19
20# ifndef MAX_FD
21# define MAX_FD 512
22# endif
23
24# include <stddef.h>
25
26char *get_next_line(int fd);
27
28size_t ft_strlen(const char *s);
29char *ft_strchr(const char *s, int c);
30void *ft_memcpy(void *dest, const void *src, size_t n);
31char *ft_substr(char const *s, size_t len);
32char *ft_strjoin(char const *s1, char const *s2);
33
34#endif