next up previous contents index
Next: S_ISLNK Up: Functions and procedures Previous: fdWrite

fdTruncate

   

Declaration:

Function fdTruncate (fd,size:longint : boolean;

Description:

fdTruncate sets the length of a file in fd on size bytes, where size must be less than or equal to the current length of the file in fd.

The function returns True if the call was successful, false if an error occurred.

Errors:

Errors are returned in LinuxError.

See also:

fdOpen, fdClose, fdRead,fdWrite

For an example, see fdRead.



Michael Van Canneyt
Tue Mar 31 16:46:10 CEST 1998