FEAT: add gnl makefile, have to fix check input

This commit is contained in:
LucasCodeur
2026-03-28 15:15:44 +01:00
parent b673d52c6b
commit d918306a68
8 changed files with 412 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lud-adam <lud-adam@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/18 10:46:55 by lud-adam #+# #+# */
/* Updated: 2026/03/28 14:53:44 by lud-adam ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <stddef.h>
# include <fcntl.h>
# include <unistd.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 1024
# endif
void ft_strcpy(char *src, char *dest);
char *build_line(char *src, char *c_remaining, size_t *index);
char *get_next_line(int fd);
#endif