Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!news From: chasman@athena.mit.edu (David Chasman) Newsgroups: comp.sources.wanted Subject: Microsoft C disk inquiry function Keywords: DOS , C, I/O, DISK Message-ID: <1990Dec24.075611.13184@athena.mit.edu> Date: 24 Dec 90 07:56:11 GMT Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 13 Hi, Does anyone out there have some simple C code I can use to see if a floppy drive is O.K. - i.e. - is there a disk in there or not ? I picture something that I would call as follows: int is_there_a_disk(char drive_name) it would return 1 = Yes, 2 = No, I want to avoid the "Please insert disk for drive A/B " etc. that you usually get by testing and doing something about the predicament in my program. --David Chasman