char *fgetln(FILE *stream, size_t *len);
char *fgetline(FILE *stream, size_t *len);
Is stream from which the characters are read.
Is the location in which the length of the line is stored.
On success, a pointer is returned; this pointer becomes invalid after
the next I/O operation on stream (whether successful or not)
or as soon as the stream is closed.
Otherwise, a null pointer is returned.
Another process has the file locked.
stream is not a valid stream opened for reading.
A signal interrupted the call.
An input error occurred.
The open object is a directory, not a file.
Memory could not be allocated for internal buffers.
A device error occurred.
The underlying file descriptor is a non-blocking socket and no data is ready to be read.
For files opened in text-mode, the character sequence carriage-return linefeed is translated into linefeed. No such translation occurs for files opened in binary mode.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.