X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/5366852335044c1e68a5c32548d3051cc943552f..b30c4e8f1aef96f6fdc93da9f125545f5f74d06e:/fatfs/doc/en/eof.html diff --git a/fatfs/doc/en/eof.html b/fatfs/doc/en/eof.html index 384c8d8..2e87506 100644 --- a/fatfs/doc/en/eof.html +++ b/fatfs/doc/en/eof.html @@ -33,15 +33,15 @@ int f_eof (

Return Values

-

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.

+

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.

Description

-

In this revision, this function is implemented as a macro.

+

In this revision, this function is implemented as a macro. It does not have any validation and mutual exclusion.

-#define f_eof(fp) (((fp)->fptr) == ((fp)->fsize) ? 1 : 0)
+#define f_eof(fp) ((int)((fp)->fptr == (fp)->fsize))