mfsHFresetRC

Syntax

s32 mfsHFresetRC(MfsFile handle)

Arguments

handle File handle

Return value

Error

Function

Resets update counter value

Description

This function sets the update counter value of the file specified by handle to 0.

This function sets the update counter value of the file specified by handle to 0. The update counter of the file is set to 0 when the file is created and is incremented whenever data is written to the file or the attribute is changed. The maximum value is 255, and the value cannot be incremented above 255. The rewriting of the file by another drive can be detected by checking the update counter.

Since the update counter only exists in the RAM area, the MFS_ERR_REFUSE error will occur if this function is used for a ROM area file.

Main errors

MFS_ERR_NO Normal termination
MFS_ERR_FATAL File open error
The file is not opened.
MFS_ERR_DEVICE Device error
An error occurred in an internally called Leo function.
Since a Leo function error is stored in the variable mfsError, check this variable to perform processing.
MFS_ERR_PROTECT Write protected
The file attribute is write protected, or the volume attribute is write protected, or the parent directory is write protected.