NHariman / get_next_line

Codam Coding College Project: get_next_line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codam Coding College project: get_next_line

A function with prototype:

int get_next_line(int fd, char **line)

Parameters:
int fd - file descriptor for reading. char **line - the value of what has been read.

Description:
a function which returns a line read from a file descriptor, without the newline.

Return value:
Function returns a 1 if a line has been read, a 0 if end of file (EOF) has been reached or a -1 if an error has occured.

About

Codam Coding College Project: get_next_line


Languages

Language:C 100.0%