next up previous contents index
Next: fdTruncate Up: Functions and procedures Previous: fdRead

fdWrite

   

Declaration:

Function fdWrite (fd:longint;var buf;size:longint : longint;

Description:

fdWrite writes at most size bytes from buf to file descriptor fd.

The function returns the number of bytes actually written, or -1 if an error occurred.

Errors:

Errors are returned in LinuxError.

See also:

fdOpen, fdClose, fdRead,fdTruncate

For an example, see fdOpen.



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