-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
38 lines (31 loc) · 1.43 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
34
35
36
37
38
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: troberts <troberts@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/23 21:02:30 by troberts #+# #+# */
/* Updated: 2022/06/26 22:34:02 by troberts ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <unistd.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 8192
# endif
# define FD_MAX 10240
/*
** @brief Get the next line of a file descriptor WITH the newline.
**
** @param fd file descriptor of file to read
** @return char* line that's been read, or NULL if EOF or error
*/
char *get_next_line(int fd);
size_t ft_strlen(const char *s);
size_t ft_strlcpy(char *dst, const char *src, size_t size);
char *ft_strdup(const char *s);
char *ft_strjoin(char const *s1, char const *s2);
#endif