-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
31 lines (28 loc) · 1.37 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kyuki <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/11/17 20:54:40 by kyuki #+# #+# */
/* Updated: 2021/04/05 17:18:22 by kyuki ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <fcntl.h>
# include <stdlib.h>
# include <stdio.h>
# include <unistd.h>
# define READ 1
# define READ_EOF 0
# define READ_ERROR -1
int get_next_line(const int fd, char **line);
char *ft_substr(char const *s, unsigned int start, size_t len);
char *ft_strchr(const char *s, int c);
char *ft_strjoin(char const *s1, char const *s2);
char *ft_strdup(char *src);
size_t ft_strlen(const char *s);
int ft_malloc_p(void **p, size_t len);
#endif