-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
31 lines (26 loc) · 1.27 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apolo-to <apolo-to@student.42madrid> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/23 12:00:59 by apolo-to #+# #+# */
/* Updated: 2023/04/11 10:11:45 by apolo-to ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 5
# endif
# include <stdio.h>
# include <unistd.h>
# include <stdlib.h>
# include <fcntl.h>
size_t ft_strlen(const char *str);
char *ft_strchr_gnl(const char *str, int c);
char *ft_strjoin(char *prev_line, char *buffer);
size_t ft_strlcpy(char *dest, const char *src, size_t size);
char *get_next_line(int fd);
#endif