i really did the thing =)

corrected ft_getline
This commit is contained in:
Tanguy MAZE 2019-03-19 13:10:28 +01:00
parent 75ebffddea
commit daeae8bb0f

View File

@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/07 15:12:59 by tmaze #+# #+# */
/* Updated: 2019/03/18 17:05:55 by tmaze ### ########.fr */
/* Updated: 2019/03/19 13:08:37 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@ -19,7 +19,7 @@ static int get_last_ind(char *buff)
i = 0;
while (buff[i] && buff[i] != '\n')
i++;
return (0);
return (i);
}
static int flush_buff(char **line, char *buff)