-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
28 lines (23 loc) · 1.18 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gmachado <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/24 20:59:11 by gmachado #+# #+# */
/* Updated: 2022/05/09 22:39:26 by gmachado ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <unistd.h>
# define FALSE 0
# define TRUE 1
# define ERROR -1
char *get_next_line(int fd);
size_t ft_strlen(const char *s);
void append(char **s1, char *s2, size_t s2_len);
int split_remaining(char **result, char *remaining);
#endif