-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
37 lines (31 loc) · 1.28 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seshevch <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/03 15:31:57 by seshevch #+# #+# */
/* Updated: 2018/12/22 13:25:06 by seshevch ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef __GET_NEXT_LINE_H
# define __GET_NEXT_LINE_H
# include <stdlib.h>
# include <stdio.h>
# include <fcntl.h>
# include <string.h>
# include <sys/types.h>
# include <sys/uio.h>
# include <unistd.h>
# define BUFF_SIZE 1
typedef struct s_pok
{
char *data;
int fd_cp;
unsigned int n_elm;
unsigned int nb;
struct s_pok *next;
} t_apok;
int get_next_line(const int fd, char **line);
#endif