574
Appendix A: System Routines — Files
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
FSetSize
Declaration:
FSWORD
FSetSize
(FILES *
fsPtr
, FSWORD
fileSize
)
Category(ies):
Files
Description:
Truncate the size of a file opened in WRITE mode to
fileSize
which may
not exceed the current file size. Return the new file size, but no more than
the current size. Note that in READ mode, the current file size is always
returned without making any changes.
Inputs:
fsPtr
— Pointer to FILES structure previously opened with
FOpen
for
write mode.
fileSize
— New file size (may not exceed current file size).
Outputs:
New file size (will not exceed current file size).
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: FOpen, FGetSize
Example:
See
FGetSize
.