| delorie.com/archives/browse.cgi | search |
| From: | Martin Str|mberg <ams AT ludd DOT luth DOT se> |
| Message-Id: | <200101061229.NAA18761@father.ludd.luth.se> |
| Subject: | Re: Fw: Patch for statfs.c |
| In-Reply-To: | <OE9WXeVGTmboQWp6ozp00004212@hotmail.com> 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 |
| 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 |
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 <stdio.h>
> #include <dos.h>
>
> 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |