]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - fatfs/doc/en/eof.html
Import fatfs R0.12b
[z180-stamp.git] / fatfs / doc / en / eof.html
index 384c8d8836aa626579fdce95bdae382264d71a25..2e875062df885cb3583ab16eaf12908ff09761f1 100644 (file)
@@ -33,15 +33,15 @@ int f_eof (
 \r
 <div class="para ret">\r
 <h4>Return Values</h4>\r
-<p>The <tt>f_eof()</tt> function returns a non-zero value if the read/write pointer has reached end of the file; otherwise it returns a zero.</p>\r
+<p>The <tt>f_eof</tt> function returns a non-zero value if the read/write pointer has reached end of the file; otherwise it returns a zero.</p>\r
 </div>\r
 \r
 \r
 <div class="para desc">\r
 <h4>Description</h4>\r
-<p>In this revision, this function is implemented as a macro.</p>\r
+<p>In this revision, this function is implemented as a macro. It does not have any validation and mutual exclusion.</p>\r
 <pre>\r
-<span class="k">#define</span> f_eof(fp) (((fp)->fptr) == ((fp)->fsize) ? 1 : 0)\r
+<span class="k">#define</span> f_eof(fp) ((int)((fp)->fptr == (fp)->fsize))\r
 </pre>\r
 </div>\r
 \r