-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
34 lines (29 loc) · 1.41 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: melkholy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/23 23:22:06 by melkholy #+# #+# */
/* Updated: 2022/07/05 19:41:43 by melkholy ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <unistd.h>
#ifndef BUFFER_SIZE
# define BUFFER_SIZE 5
#endif
size_t ft_strlen(const char *str);
void *ft_calloc(size_t nmemb, size_t size);
void ft_strlcpy(char *dest, const char *src, size_t n);
char *ft_strjoin(char const *s1, char const *s2);
char *ft_strdup(const char *str);
int ft_findnewl(const char *str, int c);
char *ft_cut_remain(char *line);
char *ft_cut_tonline(char *line);
char *ft_readit(int fd, char *read_in);
char *get_next_line(int fd);
#endif