GNU Info

Info Node: (g77-295.info)ChDir Intrinsic (subroutine)

(g77-295.info)ChDir Intrinsic (subroutine)


Next: ChMod Intrinsic (subroutine) Prev: Char Intrinsic Up: Table of Intrinsic Functions
Enter node , (file) or (file)node

ChDir Intrinsic (subroutine)
............................

     CALL ChDir(DIR, STATUS)

DIR: `CHARACTER'; scalar; INTENT(IN).

STATUS: `INTEGER(KIND=1)'; OPTIONAL; scalar; INTENT(OUT).

Intrinsic groups: `unix'.

Description:

   Sets the current working directory to be DIR.  If the STATUS
argument is supplied, it contains 0 on success or a non-zero error code
otherwise upon return.  See `chdir(3)'.

   *Caution:* Using this routine during I/O to a unit connected with a
non-absolute file name can cause subsequent I/O on such a unit to fail
because the I/O library might reopen files by name.

   Some non-GNU implementations of Fortran provide this intrinsic as
only a function, not as a subroutine, or do not support the (optional)
STATUS argument.

   For information on other intrinsics with the same name: Note: ChDir
Intrinsic (function).


automatically generated by info2www version 1.2.2.9