]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - fatfs/doc/en/forward.html
Merge branch 'chan-fatfs' into fatfs-integration
[z180-stamp.git] / fatfs / doc / en / forward.html
index 714c48d1580e6da84f363e33e9ab1301db1c467c..eddb051f88848c9e9638c58cff3d71188e14ff30 100644 (file)
@@ -45,7 +45,6 @@ FRESULT f_forward (
 <a href="rc.html#ok">FR_OK</a>,\r
 <a href="rc.html#de">FR_DISK_ERR</a>,\r
 <a href="rc.html#ie">FR_INT_ERR</a>,\r
-<a href="rc.html#nr">FR_NOT_READY</a>,\r
 <a href="rc.html#io">FR_INVALID_OBJECT</a>,\r
 <a href="rc.html#tm">FR_TIMEOUT</a>\r
 </p>\r
@@ -54,13 +53,13 @@ FRESULT f_forward (
 \r
 <div class="para desc">\r
 <h4>Description</h4>\r
-<p>The <tt>f_forward()</tt> function reads the data from the file and forward it to the outgoing stream without data buffer. This is suitable for small memory system because it does not require any data buffer at application module. The file pointer of the file object increases in number of bytes forwarded. In case of <tt class="arg">*bf</tt> is less than <tt class="arg">btf</tt> without error, it means the requested bytes could not be transferred due to end of file or stream goes busy during data transfer.</p>\r
+<p>The <tt>f_forward</tt> function reads the data from the file and forward it to the outgoing stream without data buffer. This is suitable for small memory system because it does not require any data buffer at application module. The file pointer of the file object increases in number of bytes forwarded. In case of <tt class="arg">*bf</tt> is less than <tt class="arg">btf</tt> without error, it means the requested bytes could not be transferred due to end of file or stream goes busy during data transfer.</p>\r
 </div>\r
 \r
 \r
 <div class="para comp">\r
 <h4>QuickInfo</h4>\r
-<p>Available when <tt>_USE_FORWARD == 1</tt> and <tt>_FS_TINY == 1</tt>.</p>\r
+<p>Available when <tt>_USE_FORWARD == 1</tt>.</p>\r
 </div>\r
 \r
 \r
@@ -113,7 +112,7 @@ FRESULT play_file (
     if (rc) return rc;\r
 \r
     <span class="c">/* Repeat until the file pointer reaches end of the file */</span>\r
-    while (rc == FR_OK &amp;&amp; fil.fptr &lt; fil.fsize) {\r
+    while (rc == FR_OK &amp;&amp; !f_eof(&amp;fil)) {\r
 \r
         <span class="c">/* any other processes... */</span>\r
 \r