From dd38d907244bc0e483c3d760f2ba464a394ec229 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Tue, 11 Mar 2014 23:55:41 -0700 Subject: Initial checkin with STM HAL This compiles and links, but hasn't been tested on a board yet and even if it was run, it doesn't currently do anything. --- stmhal/fatfs/doc/en/eof.html | 62 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 stmhal/fatfs/doc/en/eof.html (limited to 'stmhal/fatfs/doc/en/eof.html') diff --git a/stmhal/fatfs/doc/en/eof.html b/stmhal/fatfs/doc/en/eof.html new file mode 100644 index 000000000..384c8d883 --- /dev/null +++ b/stmhal/fatfs/doc/en/eof.html @@ -0,0 +1,62 @@ + + +
+ + + + + +The f_eof function tests for end-of-file on a file.
++int f_eof ( + FIL* fp /* [IN] File object */ +); ++
The f_eof() function returns a non-zero value if the read/write pointer has reached end of the file; otherwise it returns a zero.
+In this revision, this function is implemented as a macro.
+
+#define f_eof(fp) (((fp)->fptr) == ((fp)->fsize) ? 1 : 0)
+
+Always available.
+