ft_get_next_line - kibotrel/42-Libft GitHub Wiki

int	ft_get_next_line(const int fd, char **line)

Description :

Reads on the file-descriptor fd the current line and copies it into the memory address of the string line.

Return Value :

Returns the state of the current opened file-descriptor fd. When there's stuff to read, it returns 1 and 0 when there's nothing left to read. If an error occurs during the process -1 is returned.

Source code