Compaq Fortran for Tru64 UNIX Alpha Systems V5.4

chdir (3f)


Syntax

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

Description

  The chdir function changes the default directory for creating and locating
  files to dirname.

Restrictions

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

  Use of this function may cause inquire by unit to fail.

Return Values

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

See Also

  cd(1), chdir(2), perror(3f)