-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
38 lines (35 loc) · 1.43 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
/* ************************************************************************** */
/* LE - / */
/* / */
/* get_next_line.h .:: .:/ . .:: */
/* +:+:+ +: +: +:+:+ */
/* By: siferrar <[email protected]> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2019/10/21 20:52:46 by siferrar #+# ## ## #+# */
/* Updated: 2019/12/02 16:01:33 by siferrar ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <unistd.h>
# include <fcntl.h>
typedef struct s_gnl
{
struct s_gnl *next;
int fd;
int asleft;
int nbr_read;
int eol;
char *buff;
} t_gnl;
int get_next_line(int fd, char **line);
int has_eol(char *s);
char *ft_strnjoin(char const *s1,
char const *s2,
int start,
int size);
size_t ft_strlen(const char *s);
void *ft_calloc(size_t count, size_t size);
#endif