-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line_bonus.h
35 lines (29 loc) · 1.44 KB
/
get_next_line_bonus.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line_bonus.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: viferrei <viferrei@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/09/29 19:54:18 by viferrei #+# #+# */
/* Updated: 2022/01/28 16:53:29 by viferrei ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_BONUS_H
# define GET_NEXT_LINE_BONUS_H
# include <stdlib.h>
# include <fcntl.h>
# include <unistd.h>
# include <limits.h>
char *get_next_line(int fd);
int read_file(int fd, char **buffer, char **s_buff, char **line);
char *get_line(char **line, char **s_buff);
size_t ft_strlen(const char *str);
char *ft_strdup(const char *s1);
char *ft_strchr(const char *str, int c);
char *ft_strjoin(char const *s1, char const *s2);
char *ft_substr(char const *s, unsigned int start, size_t len);
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 10000000
# endif
#endif