9.116. GETCWD

9.116 GETCWD — Get current working directory

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:登录查看完整内容