FpWrite¶
Write data to file descriptor.
Declaration¶
Source position: bunxh.inc line 99
function FpWrite(fd: cint; buf: PAnsiChar; nbytes: TSize) : TsSize;external name 'FPC_SYSC_WRITE';
function FpWrite(fd: cint; const buf; 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.