FppWrite function
Positional write: write to file descriptor at a certain position.
Declaration
function FpPWrite(fd: cint; buf: PAnsiChar; nbytes: TSize; offset: TOff)
: TsSizeDescription
FpPWrite writes
nbytes bytes from buffer
buf into file descriptor
fd
starting at offset
offset.
Offset is measured from the start of the file. This function
can only be used on files, not on pipes or sockets (i.e. any seekable file descriptor).
The function returns the number of bytes actually written, or -1 on error.
Errors
On error, -1 is returned.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
