Mail Archives: djgpp/1998/07/01/04:43:49
On Wed, 1 Jul 1998, nebo wrote:
> Is there an equivalent, or does someone know how to
> make an equivalent to borlands _chdrive() function??
I think you can use the chdir function in DJGPP to do that. For example,
instead of _chdrive(3) you should say chdir("c:."), instead of
_chdrive(1) say chdir("a:."), instead _chdrive(0) say chdir("."), etc.
(chdir in DJGPP's library changes drives as well as directories, unlike
other compilers.)
> for those who aren't familiar with it, it checks the
> availability of the given drive(as an integer argument)
> including floppy drives, WITHOUT trying to access
> the drive to do it.
Not according to my references. I think _chdrive actually changes to the
named drive and returns non-zero if it couldn't. chdir does the same in
DJGPP.
- Raw text -