The function fgets reads a string from a data steam. The parameter string is a pointer defining the buffer to store the string. The parameter length defines the numbers of characters to read. The parameter stream is a pointer defining the data stream to read from. The function is included in the library RL-FlashFS. The prototype is defined in the file stdio.h Characters are read from the current cursor position: - until length characters have been read.
- up to and including the first new-line ('\n').
- up to the end of the stream.
A null character ('\0') is appended to string. |