Started from buttom go to the sky
This commit is contained in:
parent
96215449bd
commit
f811e55dea
4781 changed files with 10121 additions and 1743 deletions
43
stdme/include/me/gnl/gnl.h
Normal file
43
stdme/include/me/gnl/gnl.h
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* gnl.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer42@students.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/23 14:40:15 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/11 19:21:56 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef GNL_H
|
||||
# define GNL_H
|
||||
|
||||
# ifndef BUFFER_SIZE
|
||||
# define BUFFER_SIZE 128
|
||||
# endif
|
||||
|
||||
# ifndef BUFFER_LENGTH
|
||||
# define BUFFER_LENGTH 512
|
||||
# endif
|
||||
|
||||
# include "me/buffered_str/buf_str.h"
|
||||
# include "me/types.h"
|
||||
|
||||
typedef struct s_static_buffer
|
||||
{
|
||||
t_file fd;
|
||||
bool used;
|
||||
char buf[BUFFER_SIZE + 1];
|
||||
bool init;
|
||||
} t_static_buffer;
|
||||
|
||||
typedef struct s_copy_flags
|
||||
{
|
||||
bool error;
|
||||
bool empty_read;
|
||||
} t_copy_flags;
|
||||
|
||||
t_buffer_str get_next_line(t_file fd, bool *error);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue