-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
36 lines (32 loc) · 1.38 KB
/
get_next_line.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: acaceres <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/10 05:27:38 by acaceres #+# #+# */
/* Updated: 2023/09/11 06:25:35 by acaceres ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 2
# endif
# include <unistd.h>
# include <stdlib.h>
# include <limits.h>
# include <stdio.h>
typedef struct s_list {
char *content;
ssize_t nl;
ssize_t len;
struct s_list *next;
} t_list;
char *get_next_line(int fd);
void ft_lstclear(t_list **lst, void (*del)(void*));
void ft_lstadd_back(t_list **lst, t_list *new);
char *buff_size_1(int fd, char *line, char *tmp);
t_list *create_node(char *content);
#endif