VFGetFileSizeByFd

Syntax


#include <revolution/vf.h>

s32 VFGetFileSizeByFd( VFFile* file );

Arguments

file The file descriptor.

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 from the file descriptor. To get an accurate file size for 2 GB or higher, use the VFGetFileSizeU32ByFd function.

See Also

VFGetFileSizeU32ByFd, VFGetFileSize, VFGetFileSizeU32

Revision History

2008/12/16 Added a description about the limits on the return values
2006/06/09 Initial version


CONFIDENTIAL