-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgnl_bonus.h
47 lines (41 loc) · 1.59 KB
/
gnl_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
36
37
38
39
40
41
42
43
44
45
46
47
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* gnl_bonus.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ahel-mou <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/26 05:51:32 by ahel-mou #+# #+# */
/* Updated: 2021/11/26 05:51:32 by ahel-mou ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
set the BUFFER_SIZE while compiling the code
-D BUUFER_SIZE INT
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 5
# endif
# include <stdio.h>
# include <string.h>
# include <stdlib.h>
# include <fcntl.h>
# include <unistd.h>
typedef struct dipo_dial_variablat
{
int fd;
size_t buf_len;
size_t j;
char *tmp;
char *tmp2;
int *free_checker;
char *buff;
char *cur_line;
} t_storage;
size_t ft_strlen(const char *cara);
void *ft_memcpy(void *dest, const void *src, size_t n);
char *ft_substr(char const *str, unsigned int start, size_t len);
char *ft_strjoin(char const *s1, char const *s2);
void *ft_calloc(size_t count, size_t size);
char *get_next_line(int fd);
#endif