Intel® Fortran Compiler 18.0 Developer Guide and Reference

PXFOPENDIR

POSIX Subroutine: Opens a directory and associates a stream with it.

Module

USE IFPOSIX

CALL PXFOPENDIR (dirname,lendirname,opendirid,ierror)

dirname

(Input) Character. The directory name.

lendirname

(Input) INTEGER(4). The length of dirname string.

opendirid

(Output) INTEGER(4). The returned ID for the directory.

ierror

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

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

This subroutine opens a directory pointed to by the dirname argument and returns the ID of the directory into opendirid. After the call, this ID can be used by functions PXFREADDIR, PXFREWINDDIR, PXFCLOSEDIR.

See Also