CHARACTER; scalar; INTENT(IN).
Sets the current working directory to be Dir.
Returns 0 on success or a non-zero error code.
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.
Due to the side effects performed by this intrinsic, the function form is not recommended.
For information on other intrinsics with the same name: See ChDir Intrinsic (subroutine).