-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line_bonus.h
32 lines (28 loc) · 1.36 KB
/
get_next_line_bonus.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line_bonus.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: whendrix <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/03 00:28:24 by whendrix #+# #+# */
/* Updated: 2022/07/10 03:28:10 by whendrix ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_BONUS_H
# define GET_NEXT_LINE_BONUS_H
# include <stdlib.h>
# include <unistd.h>
# ifndef MAX_FD
# define MAX_FD 1024
# endif
size_t ft_strlen(const char *s);
char *ft_strchr(const char *str, int c);
char *ft_strjoin(char *buffer, char *s);
char *ft_substr(char const *s, unsigned int start, size_t len);
int ft_endl(char *str);
void *ft_get_line(char *buffer);
void *ft_new_str(char *buffer);
void *ft_read_str(int fd, char *buffer);
char *get_next_line(int fd);
#endif