getcwd_(name)

Purpose

The getcwd_ function retrieves the pathname NAME of the current working directory where the maximum length is 1024 characters.

Class

Function

Argument Type and Attributes

name
A character string of maximum length 1024

Result Type and Attributes

INTEGER(4)

Result Value

On successful completion, this function returns 0. Otherwise, this function returns an error. IBM Copyright 2003