From: "John M. Aldrich" 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: Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp211.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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!| ---------------------------------------------------------------------