Fgetpos - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Files

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.
fsPtr
Inputs:
Outputs:
Current file position.
The FILES structure pointed to by fsPtr must have been previously opened
Assumptions:
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 );
}
TI-89 / TI-92 Plus Developer Guide
— Pointer to FILES structure previously opened with FOpen.
/* x should have value of 3 */
Not for Distribution
565
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents