-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
43 lines (38 loc) · 1.4 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
38
39
40
41
42
43
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ybachar <ybachar@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/23 16:53:24 by ybachar #+# #+# */
/* Updated: 2023/01/19 00:30:44 by ybachar ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <unistd.h>
# include <fcntl.h>
# include <errno.h>
# include <string.h>
# include <stdlib.h>
typedef struct s_vars
{
void *mlx;
void *win;
void *mlx_win;
void *relative_path;
int img_width;
int img_height;
char **map;
} t_vars;
char *get_next_line(int fd);
char *ft_strjoin(char *s1, char *s2);
char *get_ligne(char *str);
char *get_extra(char *str);
int ft_strlen(char *str);
void freeall(t_vars *vars);
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 1
# endif
#endif