FSetSize Function (ROM Call 0x3E3)

AMS 2.00 or higher files.h

unsigned short FSetSize (FILES *fsPtr, unsigned short fileSize);

Truncate the size of a file opened in write mode.

FSetSize truncates the size of the 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. fsPtr must be a pointer to a FILES structure previously opened with FOpen for writing.


See also: FOpen, FGetSize