-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
29 lines (25 loc) · 1.25 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: scosta-j <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/10 21:57:20 by scosta-j #+# #+# */
/* Updated: 2023/02/17 22:32:22 by scosta-j ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 5
# endif
# include <unistd.h>
# include <stdlib.h>
char *get_next_line(int fd);
char *ft_strjoin(char *s1, char *s2);
int find_chr_index(char *str);
int update_buffer(char *buffer);
char *read_line(int fd, char *buffer, char *line);
char *treat_buffer_newline(char *buffer, char *line);
#endif