Skip to content

FpReaddir

Read entry from directory.

Declaration

Source position: bunxh.inc line 83

function FpReaddir(var dirp: Dir) : pDirent;external name 'FPC_SYSC_READDIR';

Description

FpReadDir reads the next entry in the directory pointed to by dirp. It returns a pdirent pointer to a dirent record describing the entry. If the next entry can't be read, Nil is returned.

For an example, see FpOpenDir.

Errors

Extended error information can be retrieved using fpGetErrno.

See also

Name Description
FpCloseDir Close directory file descriptor.
FpOpenDir Open a directory for reading.