-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
39 lines (33 loc) · 1.31 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
35
36
37
38
39
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lsauvage <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/02/07 18:41:00 by lsauvage #+# #+# */
/* Updated: 2018/05/03 17:32:24 by lsauvage ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <unistd.h>
# include <fcntl.h>
# include "./libft/libft.h"
# define BUFF_SIZE 50
# define EOL '\n'
# define EOF '\0'
/* typedef struct s_list
{
char *content;
size_t index_fd;
struct s_list *next;
} t_list; */
typedef struct s_buff
{
char mem[BUFF_SIZE + 1];
int index;
} t_buff;
int get_next_line(const int fd, char **line);
#endif