From: Martin Str|mberg Message-Id: <200101061229.NAA18761@father.ludd.luth.se> Subject: Re: Fw: Patch for statfs.c In-Reply-To: from Norberto Alfredo Bensa at "Jan 6, 2001 08:39:05 am" To: ceo AT nbensacomputers DOT com (Norberto Alfredo Bensa) Date: Sat, 6 Jan 2001 13:29:54 +0100 (MET) Cc: djgpp-workers AT delorie DOT com (DJGPP-WORKERS) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk According to Norberto Alfredo Bensa: > What about DVDs? Is a DVD-ROM recognized as a CD-ROM, i.e. will the above > code be true if it is a DVD-ROM or it will be false? > > Martin, can you please test the following? > > #include > #include > > int main (void) > { > if (_is_cdrom_drive ( 'R' - 'A' +1 )) > { > printf ("is a CDROM\n"); > } > else > { > printf ("not a CD-ROM\n"); > } > } > > What does print if you test with a DVD-ROM in your R: drive? It prints "is a CDROM" on DOZE 7.1 and WINDOZE 98. It prints that even if no CD is in the drive... Right, MartinS