delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/21/04:37:02

Date: Sun, 21 Jan 1996 11:21:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
Cc: DJGPP AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Finding which drives exist

On Fri, 19 Jan 1996, A.Appleyard wrote:

> I wrote a big Gnu C++ program (an emacs-type text editor). I found today that
> various DOS interrupts that are supposed to make specific fault returns when I
> try to access a nonexistent drive, when Novell Netware is active act very odd
> and cause aborts in my program; and I have to run with Novell active most of
> the time. Luckily I have managed to cobble matters together so that a
> nonexistent drive looks to a user of my program like an empty drive that can't
> be written to. But this is unsatisfactory. Please how in Gnu C++ can I find
> easily at run time for(i='A';i<='Z';i++) whether drive i exists? And I don't

In v2.0, you can call `getmntent' library function which does just that.

- Raw text -


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