Go to main content
Oracle Developer Studio 12.6 Man Pages

Exit Print View

Updated: June 2017
 
 

getcwd(3F)

Name

getcwd - get the path name of the current working directory

Synopsis

integer function getcwd (dirname)
character*(*) dirname

Description

The path name of the default directory for creating and locating files is returned in dirname. The value of the function is zero if successful, an error code otherwise.

Files

libfsu.a

See Also

chdir(3F), perror(3F), getwd(3C)

Bugs

Path names cannot be longer than MAXPATHLEN as defined in <sys/param.h>.