-
Notifications
You must be signed in to change notification settings - Fork 2
/
get_next_line.h
37 lines (29 loc) · 1.24 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: dwillems <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/01/10 20:03:34 by dwillems #+# #+# */
/* Updated: 2016/01/29 17:44:18 by dwillems ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include "libft/libft.h"
# include <unistd.h>
# define BUFF_SIZE 100000
# define GNL_ERROR -1
# define GNL_FINISHED 0
# define GNL_OK 1
# define READ_ERROR -1
# define READ_FINISHED 0
typedef struct s_file
{
int fd;
char *red;
char *b_red;
} t_file;
int get_next_line(int fd, char **line);
#endif