i really did the thing =)
corrected ft_getline
This commit is contained in:
parent
75ebffddea
commit
daeae8bb0f
@ -6,7 +6,7 @@
|
|||||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2019/03/07 15:12:59 by tmaze #+# #+# */
|
/* 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;
|
i = 0;
|
||||||
while (buff[i] && buff[i] != '\n')
|
while (buff[i] && buff[i] != '\n')
|
||||||
i++;
|
i++;
|
||||||
return (0);
|
return (i);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flush_buff(char **line, char *buff)
|
static int flush_buff(char **line, char *buff)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user