-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
40 lines (34 loc) · 1.54 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
39
40
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fporto <fporto@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/03/10 14:28:07 by fporto #+# #+# */
/* Updated: 2021/05/12 16:55:06 by fporto ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 2
# endif
# define FD_MAX 4096
# include <stdio.h>
# include <unistd.h>
# include <fcntl.h>
# include <stdlib.h>
# include <stddef.h>
# include <string.h>
int get_next_line(int fd, char **line);
char *ft_strchr(const char *s, int c);
void *ft_calloc(size_t nmemb, size_t size);
void *ft_memset(void *s, int c, size_t n);
char *ft_strjoin(char const *s1, char const *s2);
size_t ft_strlen(const char *s);
char *ft_substr(char const *s, unsigned int start, size_t len);
char *ft_strdup(const char *s1);
int save_lines(char **lineread, char *buffer, char **line, \
ssize_t nreadbytes);
#endif