-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
30 lines (25 loc) · 1.13 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: ftaffore <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/12/02 12:49:33 by ftaffore #+# #+# */
/* Updated: 2013/12/04 17:19:35 by ftaffore ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# define BUFF_SIZE 256
typedef struct s_chain
{
int i;
int n;
int fd;
int len;
char buff[BUFF_SIZE + 1];
struct s_chain *next;
} t_chain;
int get_next_line(int fd, char **line);
#endif