-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
28 lines (25 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sclolus <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/12 02:04:34 by sclolus #+# #+# */
/* Updated: 2016/11/18 04:57:22 by sclolus ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# define BUFF_SIZE 10000000
# include "libft.h"
# include <stdlib.h>
# include <unistd.h>
typedef struct s_fd_data
{
int fd;
char buf[BUFF_SIZE + 1];
char *current;
} t_fd_data;
int get_next_line(const int fd, char **line);
#endif