Sign in Join
FPDoc Onlineexperiment

FpClose function

In unit BaseUnix

Close file descriptor.

Declaration

pascal
function FpClose(fd: cint): cint

Description

FpClose closes a file with file descriptor Fd. The function returns zero if the file was closed successfully, a nonzero return value indicates an error.

For an example, see FpOpen.

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.