-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
30 lines (25 loc) · 1.17 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abassibe <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/23 13:50:58 by abassibe #+# #+# */
/* Updated: 2017/03/10 23:18:27 by abassibe ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include "libft.h"
# define BUFF_SIZE 9
typedef struct s_buff
{
int fd;
int ind;
char *buff;
struct s_buff *next;
} t_buff;
int get_next_line(const int fd, char **line);
int read_file(t_buff *cpy, char **line, int fd);
#endif