-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
34 lines (28 loc) · 1.2 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: asarandi <asarandi@student.42.us.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/10/14 12:11:19 by asarandi #+# #+# */
/* Updated: 2017/10/20 03:45:22 by asarandi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <unistd.h>
# include "libft/libft.h"
# define BUFF_SIZE 32
typedef struct s_gnl
{
void *mem;
size_t size;
int fd;
int eof;
struct s_gnl *prev;
struct s_gnl *next;
} t_gnl;
int get_next_line(const int fd, char **line);
#endif