インテル® Fortran コンパイラー 14.0 ユーザー・リファレンス・ガイド

GETCWD

Portability Function: Returns the path of the current working directory.

モジュール

USE IFPORT

result = GETCWD (dirname)

dirname

(Output) Character *(*). Name of the current working directory path, including drive letter.

結果

The result type is INTEGER(4). The result is zero if successful; otherwise, an error code.

    USE IFPORT
    character*30 dirname
!   variable dirname must be long enough to hold entire string
    integer(4) istat
    ISTAT = GETCWD (dirname)
    IF (ISTAT == 0) write *, 'Current directory is ',dirname

関連情報


このヘルプトピックについてのフィードバックを送信