-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_next_line.h
More file actions
36 lines (28 loc) · 1.36 KB
/
Copy pathget_next_line.h
File metadata and controls
36 lines (28 loc) · 1.36 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
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: freddy <freddy@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/19 10:25:52 by fschuber #+# #+# */
/* Updated: 2023/11/06 14:43:15 by freddy ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <unistd.h>
# include <stdlib.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 42
# endif
// utils
int gnl_strchr(char *str, int c);
int gnl_strlen(const char *str);
char *gnl_substr(char const *s, int start, size_t len);
char *gnl_strjoin(char const *s1, char const *s2);
// important
char *get_next_line(int fd);
int get_next_chunk(char **left, int filedes, int *read_ret);
char *split_off_line(char **left, int split_i);
#endif