-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
32 lines (28 loc) · 1.24 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tlevaufr <tlevaufr@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/01/17 13:17:36 by tlevaufr #+# #+# */
/* Updated: 2018/02/19 22:16:25 by tlevaufr ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# define BUFF_SIZE 8
# include <string.h>
# include "libft/libft.h"
# include <fcntl.h>
# include <limits.h>
typedef struct s_gnl_lst
{
int fd;
ssize_t read_value;
char buf[BUFF_SIZE];
ssize_t bytes_read;
struct s_gnl_lst *next;
} t_gnl_lst;
int get_next_line(const int fd, char **line);
#endif