Appendix A: System Routines — Files
565
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
FGetPos
Declaration:
FSWORD
FGetPos
(FILES *
fsPtr
)
Category(ies):
Files
Description:
Return the current file position (where the next read or write would occur)
for a FILE.
Inputs:
fsPtr
— Pointer to FILES structure previously opened with
FOpen
.
Outputs:
Current file position.
Assumptions:
The FILES structure pointed to by
fsPtr
must have been previously opened
with
FOpen
.
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: FOpen, FSetPos, FEof
Example:
FILES f1;
FSWORD fPos;
static char FTYPE2 = "DAT";
if (FS_OK == FOpen( "f3", &f1, FM_WRITE, FTYPE2 )) {
FWrite( "abc", 3, &f1 );
x = FGetPos( &f1 ); /* x should have value of 3 */
}