-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
executable file
·31 lines (26 loc) · 1.18 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ngouy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/13 18:38:58 by ngouy #+# #+# */
/* Updated: 2015/05/27 11:47:25 by ngouy ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# define BUFF_SIZE 1000
# include "libft.h"
# include <stdlib.h>
# include <unistd.h>
int get_next_line(int const fd, char **line);
typedef struct s_fd
{
char rest[BUFF_SIZE + 1];
int fd;
int end;
struct s_fd *next;
} t_fd;
#endif