Sign in Join
FPDoc Onlineexperiment

fpFD_ISSET function

In unit BaseUnix

Check whether a file descriptor is set.

Declaration

pascal
function fpFD_ISSET(fdno: cint; const nset: TFDSet): cint

Description

FpFD_Set Checks whether file descriptor fdNo in file descriptor set fds is set. It returns zero if the descriptor is not set, 1 if it is set. If the number of the file descriptor it wrong, -1 is returned.

For an example, see FpSelect.

Errors

If an invalid file descriptor number is passed, -1 is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.