diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-10-27 21:53:47 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-10-27 21:53:47 +0100 |
| commit | c3ba96321654d148f338c90443c5dd2d299f6b4c (patch) | |
| tree | 60fb22db0d073bd70a445545a257894974a967ce /get_next_line.h | |
| parent | 44dd5832ad0b7af9186bd5369884d258378a5781 (diff) | |
| download | get_next_line-c3ba96321654d148f338c90443c5dd2d299f6b4c.tar.gz get_next_line-c3ba96321654d148f338c90443c5dd2d299f6b4c.tar.bz2 get_next_line-c3ba96321654d148f338c90443c5dd2d299f6b4c.zip | |
previous fix broke some tests, fixed the fix
Diffstat (limited to 'get_next_line.h')
| -rw-r--r-- | get_next_line.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/get_next_line.h b/get_next_line.h index e556482..151de60 100644 --- a/get_next_line.h +++ b/get_next_line.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/09 13:52:59 by cacharle #+# #+# */ -/* Updated: 2019/10/27 19:10:23 by cacharle ### ########.fr */ +/* Updated: 2019/10/27 21:50:05 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -20,7 +20,7 @@ # endif # define LINE_READ 1 -# define END_OF_FILE 0 +# define GNL_EOF 0 # define ERROR -1 # define TRUE 1 @@ -32,10 +32,11 @@ typedef int t_bool; ** get_next_line.c */ -int real_get_next_line(int fd, char **line, int ret); +int real_get_next_line(int fd, char **line, int ret, int counter); int get_next_line(int fd, char **line); int put_rest(char **line, char *rest); int find_newline(char *str); +int clean_line(char **line, int ret); /* ** get_next_line_utils.c - helper functions |
