renomme get next line en ft_gnl

This commit is contained in:
hugogogo
2021-07-24 11:49:36 +02:00
parent 8fd5257b23
commit b07259e037
4 changed files with 12 additions and 70 deletions

31
includes/ft_gnl.h Normal file
View File

@@ -0,0 +1,31 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/01/29 10:19:37 by hulamy #+# #+# */
/* Updated: 2020/02/25 18:48:49 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 1
# endif
typedef struct s_gnlist
{
int lfd;
char *str;
struct s_gnlist *next;
} t_gnlist;
int ft_gnl(const int fd, char **line);
int multi_fd(int fd, t_gnlist **lst);
int free_lst(t_gnlist **lst, int ret);
#endif