www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/03/21:56:15

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Drives in system?
Date: Fri, 03 Jan 1997 18:36:22 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 18
Message-ID: <32CDC226.4D64@cs.com>
References: <malyonE3FLq4 DOT MC9 AT netcom DOT com>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp211.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019