-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line_bonus.h
35 lines (28 loc) · 1.3 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
33
34
35
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line_bonus.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cnguyen- <cnguyen-@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/30 17:59:50 by cnguyen- #+# #+# */
/* Updated: 2024/06/05 16:13:52 by cnguyen- ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_BONUS_H
# define GET_NEXT_LINE_BONUS_H
# include <unistd.h>
# include <stdlib.h>
# include <stdio.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 42
# endif
# if BUFFER_SIZE * FOPEN_MAX > 1000000000 || BUFFER_SIZE < 1
# undef BUFFER_SIZE
# define BUFFER_SIZE 42
# endif
char *get_next_line(int fd);
// utils
char *ft_strchr(const char *s, int c);
char *ft_strsmove(char **s1, char *s2, char *stopmove);
#endif