GETCWD(3f)

DESCRIPTION
Get current working directory.

This intrinsic is provided in both subroutine and function forms; however, only one form can be used in any given program unit.

STANDARD
GNU extension

CLASS
Subroutine, function

SYNTAX

CALL GETCWD(C [, STATUS]) STATUS = GETCWD(C)

ARGUMENTS

C The type shall be CHARACTER and of default kind. STATUS (Optional) status flag. Returns 0 on success, a system specific and nonzero error code otherwise.

EXAMPLE
          PROGRAM test_getcwd
            CHARACTER(len=255) :: cwd
            CALL getcwd(cwd)
            WRITE(*,*) TRIM(cwd)
          END PROGRAM

SEE ALSO
CHDIR

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).