mfsHFwrite

Syntax

s32 mfsHFwrite(MfsFile handle,void* buf, s32 len)

Arguments

handle   File handle
*buf   Pointer to buffer in which data to be written is stored
len   Size of data to be written

Return value

Size of data that was written (a negative value is an error)

Function

Writes data

Description

This function writes data to the file specified by handle.

Main errors

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_HEADER Header error
The header area is corrupted. If it is the RAM area, try to repair it.
MFS_ERR_PROTECT Write protected
The medium is write protected.