getline − read the next line in a file.
Abz Library (-labz), Debug Library (-ldebug)
#include <abz/getline.h>
char *getline(int fd);
The getline() function returns the next line in a file. Lines in the file should be seperated with newline (’\n’) characters and there may not be any nil (’\0’) characters in the file.
The getline() function returns the next line in the file or NULL if EOF or an error occurred.
Check errno to see what error occurred.
None of the libabz routines are thread-safe. I’m not planning to change this either! For more information, please see http://threading.2038bug.com/
Written by Abraham vd Merwe <abz [AT] blio.com>