-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_next_line.h
More file actions
35 lines (30 loc) · 1.44 KB
/
Copy pathget_next_line.h
File metadata and controls
35 lines (30 loc) · 1.44 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: obouizi <obouizi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/19 16:01:23 by obouizi #+# #+# */
/* Updated: 2025/01/24 09:28:52 by obouizi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <unistd.h>
# include <stdlib.h>
# include <limits.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 1
# endif
char *get_next_line(int fd);
char *ft_strjoin(char const *s1, char const *s2);
char *ft_strdup(const char *s1);
size_t ft_slen(char const *s);
void *ft_memcpy(void *dst, const void *src, size_t n);
char *get_last_line(char **buffer, ssize_t bytes_read);
char *allocate_line(char *buffer);
int check_newline(char *buffer);
ssize_t read_data(int fd, char **buffer);
char *allocate_and_free(char **buffer);
#endif