| Description
Someone asked how could
they check whether the floppy disk
was ready in DOS . Here is how to
do this in DOS .
Code
#include <stdio.h>
#include <bios.h>
void main(void)
{
char buffer[8192];
if (biosdisk(2, 0, 1, 1, 1, 1, buffer))
printf("Error accessing drive\n");
else
printf("Drive ready\n");
}
Information
tested using Turbo C
|