C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
_chdrive
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _chdrive function changes the current working drive to the
     drive specified by <drive>. The <drive> argument uses an integer
     to specify the new working drive (1=A, 2=B, etc.).
 
     This function changes only the working drive; the _chdir function
     changes the working directory.
 
     With DOS, the new drive set by the program becomes the new working
     drive.
 
     Return Value
 
     The _chdrive function returns a value of 0 if the working drive is
     successfully changed, or -1 if an error occurs.
                                    -♦-