Sign in Join
FPDoc Onlineexperiment

FpWrite function

In unit BaseUnix

Write data to file descriptor.

Declaration

pascal
function FpWrite(fd: cint; buf: PAnsiChar; nbytes: TSize): TsSize

Description

FpWrite writes at most nbytes bytes from buf to file descriptor fd.

The function returns the number of bytes actually written, or -1 if 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.