-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
37 lines (31 loc) · 1.36 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
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yrhiba <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/16 02:44:00 by yrhiba #+# #+# */
/* Updated: 2022/10/19 03:06:46 by yrhiba ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 0
# endif
# include <stdlib.h>
# include <unistd.h>
typedef struct s_list
{
char *content;
int fd;
struct s_list *next;
} t_list;
int ft_strlc(char *s, int len0_or_chr1);
char *ft_join(char *s1, char *s2);
char *get_next_line(int fd);
t_list *ft_lstnew(char *content, int fd);
char *ft_get_content(t_list **list_o, int fd);
void delete_node(t_list **list, int fd);
#endif