Compaq Fortran for Tru64 UNIX Alpha Systems V5.4

getcwd (3f)


Syntax

  integer*4 getcwd, ierrno
  character*len dirname
  external getcwd
  ierrno = getcwd ( dirname )

Description

  The getcwd function returns the pathname of the default directory (for
  creating and locating files) to dirname.

Restrictions

  Pathnames cannot be longer than MAXPATHLEN (as defined in sys/param.h ).

Return Values

  The function returns zero if it is successful; otherwise it returns an
  error code.

See Also

  chdir(3f), perror(3f)