Appendix A: System Routines — Files
575
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
FSetVer
Declaration:
BYTE
FSetVer
(FILES *
fsPtr
, BYTE
newVer
)
Category(ies):
Files
Description:
Change the version number of an opened file and return the old version
number. Note that the file can be in read or write mode.
Inputs:
fsPtr
— Pointer to FILES structure previously opened with
FOpen
for
read or write mode.
newVer
— New version number.
Outputs:
Old version number of a file.
Assumptions:
The version number of a file is stored in the file’s symbol table entry. It is a
BYTE and is used by the IO system to verify that a newer version of a
symbol is not sent to an older TI
-
89, TI
-
92, or TI
-
92 Plus.
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: FOpen
Example:
FILES f1;
BYTE origVer;
char Buf[40];
if (FS_OK == FOpen("f1", &f1, FM_READ, "DAT")) {
origVer = FSetVer( &f1, 1 );
sprintf( buf, "Original version: %d\r\n", origVer );
Disp( buf );
FClose( &f1 );
}