-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
33 lines (29 loc) · 1.48 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dongjle2 <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/20 18:02:53 by dongjle2 #+# #+# */
/* Updated: 2023/12/04 21:14:10 by dongjle2 ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
#define GET_NEXT_LINE_H
#ifndef BUFFER_SIZE
# define BUFFER_SIZE 5
#endif
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
char *get_next_line(int fd);
size_t ft_strlen(const char *s);
char *ft_memmove(void *dst, const void *src, size_t len);
char *ft_strdup(const char *s1);
char *ft_strjoin(char const *s1, char const *s2);
ssize_t find_nl_idx(char *str);
int concat_buffer(char **stored_str, char buffer[BUFFER_SIZE + 1]);
char *ret_from_stored_string(char **stored_str, size_t nl_idx);
char *ret_concat(char **stored_str, char buffer[BUFFER_SIZE + 1], ssize_t nl_idx);
#endif