-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
30 lines (26 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: siyu <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/27 15:41:03 by siyu #+# #+# */
/* Updated: 2024/06/04 14:08:21 by siyu ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <unistd.h>
# include <fcntl.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 6
# endif
char *get_next_line(int fd);
size_t strlen_to(const char *str, char c);
char *gnl_free(char **str);
char *ft_strchr(const char *s, int c);
char *gnl_strjoin(char *s1, char const *s2);
char *gnl_substr(const char *s, size_t start, size_t len);
#endif