| FStatus | Function (ROM Call 0x3E5)

AMS 2.00 or higher | files.h

unsigned short FStatus (FILES *fsPtr);

Return the status of a file.

FStatus returns the status of the file fsPtr: FS_OK if no errors have occurred, or FS_ERROR if any errors have occurred. Note that errors accumulate so that multiple writes may be done on a file as long as the status is checked after the last write. The only way to clear the status is to close the file.
fsPtr must be a pointer to a FILES structure previously opened with FOpen.

See also: FOpen, FClose, FWrite, FPutC