-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
37 lines (31 loc) · 1.28 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
32
33
34
35
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yfurutat <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/30 20:07:02 by yuske #+# #+# */
/* Updated: 2023/01/20 16:18:50 by yfurutat ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <unistd.h>
# include <stdlib.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 1000
# endif
typedef struct s_id
{
ssize_t rd_len;
size_t len;
size_t i;
char terminal;
} t_id;
char *get_next_line(int fd);
char *ft_strjoin(char *s1, char *s2);
char *ft_strdup(const char *str);
char *ft_strchr(char *s, int c);
size_t ft_strlen(const char *str);
#endif