Reads a line from a file to a buffer.
char* INKfgets (INKFile
filep
, char
*buf
, int
length
)
is the file
to read from.filep
is the buffer
to read into.buf
is the size
of the buffer to read into.length
Reads a line from the file pointed to by
into the buffer
filep
. Lines are
terminated by a line feed character, buf
\n
. The line
placed in the buffer includes the line feed character; it is
terminated with a NULL
. If the line is longer than
length
bytes, then only the first length
- 1 bytes are placed in
.buf