copy on git

This commit is contained in:
Thomas Rieg 2025-11-28 19:50:58 +01:00
commit 42653de246
205 changed files with 7459 additions and 0 deletions

View file

@ -0,0 +1,43 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: thrieg <thrieg@student.42mulhouse.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/17 16:43:34 by thrieg #+# #+# */
/* Updated: 2025/02/16 19:06:58 by thrieg ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 512
# endif
# include <stdlib.h>
# include <unistd.h>
typedef struct s_gnl_list
{
char *buffer;
size_t index;
ssize_t nb_chars;
int fd;
struct s_gnl_list *next;
} t_gnl_list;
typedef struct s_gnl_vector
{
char *buffer;
size_t index;
size_t size;
char finished;
} t_gnl_vector;
char *get_next_line(int fd);
void gnl_cleanup_fd(int fd);
#endif