-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
33 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ldaniel- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/07/08 11:58:58 by ldaniel- #+# #+# */
/* Updated: 2021/07/11 12:05:03 by ldaniel- ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <unistd.h>
# include <stdlib.h>
# include <limits.h>
# include <fcntl.h>
int get_next_line(int fd, char **line);
char *ft_strdup(const char *s1);
char *ft_strchr(const char *s, int c);
char *ft_strjoin(char *s1, char const *s2);
char *ft_substr(char const *s, unsigned int start, size_t len);
size_t ft_strclen(const char *s, int c);
# define L_READ 1
# define END_OF_FILE 0
# define ERROR -1
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 20
# endif
#endif