adding get_next_line

This commit is contained in:
Tanguy MAZE
2018-06-07 16:56:52 +02:00
parent c5a13918c2
commit d81a696d0e
3 changed files with 109 additions and 3 deletions

10
libft.h
View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/08 00:12:36 by tmaze #+# #+# */
/* Updated: 2018/05/16 12:19:51 by tmaze ### ########.fr */
/* Updated: 2018/06/07 16:54:31 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -28,6 +28,12 @@ typedef struct s_list
struct s_list *next;
} t_list;
/*
** definition macro BUFF_SIZE
*/
# define BUFF_SIZE 30
/*
** fonctions obligatoires
*/
@@ -131,4 +137,6 @@ char *ft_strndup(const char *s1, size_t n);
unsigned int ft_abs(int nb);
char *ft_strnchr(const char *s, int c, int n);
char *ft_strrnchr(const char *s, int c, int n);
int get_next_line(const int fd, char **line);
#endif