Go to main content
Oracle Developer Studio 12.6 Man Pages

Exit Print View

Updated: June 2017
 
 

chdir(3F)

Name

chdir - change default directory

Synopsis

integer*4 function chdir (dirname)
character*(*) dirname

Description

Change the default directory for creating and locating files to dirname. Zero is returned if successful; an error code otherwise.

Files

libfsu.a

See Also

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

RESTRICTIONS

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

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

Certain FORTRAN file operations reopen files by name. Using chdir while doing I/O may cause the runtime system to lose track of files created with relative path names, including those files that are created by open statements without file names.