<dd>Pointer to read buffer to store the read string.</dd>
30
<dt>Size</dt>
31
<dd>Size of the read buffer.</dd>
32
<dt>FileObject</dt>
33
<dd>Pointer to the open file object structure.</dd>
34
</dl>
35
</div>
36
37
38
<div class="para">
39
<h4>Return Values</h4>
40
<p>When the function succeeded, <tt>Str</tt> will be returuned.</p>
41
</div>
42
43
44
<div class="para">
45
<h4>Description</h4>
46
<p>The f_gets() is a wrapper function of <a href="read.html">f_read()</a>. The read operation continues until a <tt>'\n'</tt> is stored, reached end of file or buffer is filled with Size - 1 characters. The read string is terminated with a <tt>'\0'</tt>. When the file has reached end of the file or any error occured during read operation, f_gets() returns a <tt>NULL</tt>. The EOF and error status can be examined with <tt>f_eof()</tt> and <tt>f_error()</tt> macro.</p>
47
</div>
48
49
50
<div class="para">
51
<h4>QuickInfo</h4>
52
<p>Available when <tt>_USE_STRFUNC</tt> is 1 or 2. When it is set to 2, <tt>'\r'</tt>s contained in the file are stripped out.</p>