This repository has been archived on 2023-12-28. You can view files and clone it, but cannot push or open issues or pull requests.
c_piscine_rush_02/ex00/ft_open.h

31 lines
1.2 KiB
C
Raw Permalink Normal View History

2023-12-07 16:07:15 +00:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_open.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: achubuko <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/03 19:51:40 by achubuko #+# #+# */
/* Updated: 2023/12/03 23:14:56 by achubuko ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_OPEN_H
# define FT_OPEN_H
# include <unistd.h>
# include <fcntl.h>
# include <stdlib.h>
typedef struct s_file
{
int descriptor;
char *read_window;
size_t read_window_cursor;
size_t read_window_size;
size_t read_size;
char *buffer;
size_t buffer_size;
} t_file;
t_file *ft_open(char *path);
char *ft_dispence_line(t_file *f);
#endif