FpFtruncate function
Truncate file on certain size.
Declaration
function FpFtruncate(fd: cint; flength: TOff): cintDescription
FpFTruncate sets the length of a file in
fd on
flength
bytes, where
flength must be less than or equal to the current length of
the file in
fd.
The function returns zero if the call was successful, a nonzero return value indicates that an error occurred.
Errors
Extended error information can be retrieved using fpGetErrno.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
