VFGetOffsetByFd

Syntax


#include <revolution/vf.h>

s32 VFGetOffsetByFd( VFFile* file );

Arguments

file The file descriptor.

Return Values

Success: Seek offset (0 or higher) An offset of 2 GB or more is returned as 2 GB (2,147,483,647 bytes )
Failure: -1 (currently, VF errors can be verified with the VFGetLastError function.)

Description

Gets the seek offset in bytes. To get an accurate seek offset of 2 GB or greater, use VFGetOffsetU32ByFd.

See Also

VFGetOffsetU32ByFd

Revision History

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


CONFIDENTIAL