VFGetFileSize(W)

Syntax


#include <revolution/vf.h>

s32 VFGetFileSize( const char* path );
s32 VFGetFileSizeW( const VFWchar* path );

Arguments

path The address that stores path and file name.
Either a full or relative path may be specified.

Return Values

Success: File size (0 or higher) A size of 2 GB or more is returned as 2 GB (2,147,483,647 bytes )
Failure: -1 (at this time, VF errors can be verified with  VFGetLastError)

Description

Gets the file size in bytes. To get an accurate file size of 2 GB or higher, use the VFGetFileSizeU32 function.

See Also

VFGetFileSizeU32, VFGetFileSizeByFd, VFGetFileSizeU32ByFd

Revision History

2008/12/16 Added a description of the limits on the return values
2007/05/08 Added description of return values.
2006/05/31 Initial version


CONFIDENTIAL