VFFormatDrive(W)

C Specification


#include <revolution/vf.h>

typedef s32	VFErr;

VFErr VFFormatDrive( const char* drive );
VFErr VFFormatDriveW( const VFWchar* drive );

Arguments

drive Name of the drive to be formatted.

Return Values

When successful, 0. When failed, a VFErr other than 0.

Description

Formats a mounted drive.


When a .vff file is used for the first time, be sure to format after calling VFMountDrive().

If the formatted drive is the current drive, the current directory is set to the root of that drive.
If an open file or directory exists on the volume specified by drive, the descriptor for the open file or directory is invalidated due to initialization by format.

See Also

VFMountDrive

Revision History

2006/08/24 Release.


CONFIDENTIAL