-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
29 lines (26 loc) · 1.16 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ewilliam <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/26 10:20:29 by ewilliam #+# #+# */
/* Updated: 2017/01/02 14:01:32 by ewilliam ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include "./libft.h"
# define BUFF_SIZE 65536
# define READ_ERROR -1
# define READ_EOF 0
int get_next_line(const int fd, char **line);
typedef struct s_tuple
{
char *str;
int len;
int pos;
char *nl_ptr;
} t_tuple;
#endif