zkFgets - get a string from a stream
#include "zkStdio.h"
char*
zkFgets(char* s, int n, FILE* stream);
The zkFgets() function reads bytes from stream into the array pointed to by s, until n-1 bytes are read, or a newline character is read and transferred to s, or an end-of-file condition is encountered. The string is then terminated with a null byte.
Upon successful completion, zkFgets() returns s. If the stream is at end-of-file, the end-of-file indicator for the stream is set and zkFgets() returns NULL. If a read error occurs, the error indicator for the stream is set, zkFgets() returns NULL and sets errno to indicate the error.
Refer to zkFgetc().