-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
36 lines (30 loc) · 1.38 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mbourdel <mbourdel@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/13 14:48:23 by mbourdel #+# #+# */
/* Updated: 2014/11/29 16:42:53 by mbourdel ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include "./libft/libft.h"
# define BUFF_SIZE 10
typedef struct s_file t_file;
struct s_file
{
int file;
t_file *nxt;
t_file *pvs;
};
typedef t_file *t_index;
t_index ft_register_new_file(t_index index, const int fd);
int ft_is_new_file(t_index index, const int fd);
int ft_get_this_line(t_index index, char *buff,
char **line);
int get_next_line(const int fd, char **line);
t_index ft_destroy_link(t_index index);
#endif