-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
32 lines (25 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ihermell <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/08 14:33:42 by ihermell #+# #+# */
/* Updated: 2014/12/04 18:33:50 by ihermell ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# define BUFF_SIZE 4096
# define FT_SWAP(x, y, z) {z = x; x = y; if (z != x) {free(z);}}
# include "libft.h"
typedef struct s_buff
{
int read;
int last_line;
char *buff;
int len;
} t_buff;
int get_next_line(int const fd, char **line);
#endif