/
get_next_line.h
34 lines (28 loc) · 1.23 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gahubaul <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/02/13 16:48:22 by gahubaul #+# #+# */
/* Updated: 2016/02/13 16:48:24 by gahubaul ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <fcntl.h>
# include <unistd.h>
# include "libft/libft.h"
# define BUFF_SIZE 8
# define MAX_FD 256
# define MAX_INT 2 147 483 647
typedef struct s_gnlstore
{
char *cache[MAX_FD + 1];
char *buff;
int read_bytes;
char *tmp;
} t_gnlstore;
int get_next_line(int const fd, char **line);
#endif