Mail Archives: djgpp/1997/01/03/21:56:15
Restiana Jade wrote:
>
> What's the proper way to get a list of all the drives (C:, D:, etc)
> which are connected to the system? There doesn't seem to be a library
> function to do it except for _bios_equiplist (and it's laughable). Some of
> the INT 21h functions return the number of drives connected to the system,
> but that wouldn't indicate whether or not there was a B: drive.
Look up getmntent() in the libc reference. It should do exactly what
you want.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com |
| God's final message to His Creation: | http://www.cs.com/fighteer |
| "We apologize for the inconvenience."| Fight against proprietary |
| - Douglas Adams | software - support the FSF!|
---------------------------------------------------------------------
- Raw text -