-
Notifications
You must be signed in to change notification settings - Fork 2
/
get_next_line.h
36 lines (29 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
32
33
34
35
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: daelee <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/03/11 18:03:34 by daelee #+# #+# */
/* Updated: 2020/04/19 01:21:29 by daelee ### ########.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 5000
# endif
# ifndef OPEN_MAX
# define OPEN_MAX 32
# endif
int get_next_line(int fd, char **line);
size_t ft_strlen(const char *s);
size_t ft_strlcpy(char *dest, const char *src, size_t dstsize);
size_t ft_strlcat(char *dest, const char *src, size_t dstsize);
char *ft_strdup(char *s1);
char *ft_strjoin(char *s1, char *s2);
#endif