Intel® Fortran Compiler 17.0 Developer Guide and Reference

PXFGETCWD

POSIX Subroutine: Returns the path of the current working directory.

Module

USE IFPOSIX

CALL PXFGETCWD (buf,ilen,ierror)

buf

(Output) Character. The returned pathname of the current working directory.

ilen

(Output) INTEGER(4). The length of the returned pathname.

ierror

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

If successful, ierror is set to zero; otherwise, an error code. A possible error code is EINVAL if the size of buf is insufficient.