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, it returns a system error code (errno).