PXFREADDIR

POSIX Subroutine: Reads the current directory entry.

Module: USE IFPOSIX

Syntax

CALL PXFREADDIR (idirid, jdirent, ierror)

idirid
(Input) INTEGER(4). The ID of a directory obtained from PXFOPENDIR.


jdirent
(Output) INTEGER(4). A handle of structure dirent.


ierror
(Output) INTEGER(4). The error status.

If successful, ierror is set to zero; otherwise, an error code.

The PXFREADDIR subroutine reads the entry of the directory associated with idirid into the structure associated with handle jdirent.

Note

To get a handle for an instance of the dirent structure, use PXFSTRUCTCREATE with the string 'dirent' for the structure name.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also

PXFOPENDIR, PXFREWINDDIR