is the floppy disk ready

March 31, 2009 by admin  
Filed under C

#include
#include

void main(void)
{
char buffer[8192];

// Try reading head 1, track 1, sector 1
if (biosdisk(2, 0, 1, 1, 1, 1, buffer))
printf(”Error accessing driven”);
else
printf(”Drive readyn”);
}

Related posts:

  1. the biosdisk function #include #include #include #include int main(void) { int status; int...
  2. Absread example #include #include #include #include int main(void) { unsigned char buffer[512];...
  3. Abswrite example #include #include #include #include int main(void) { unsigned char buffer[512];...
  4. Add to favorites script This is an add to favorites JavaScript example. This example...
  5. fat file system information #include #include void main(void) { struct fatinfo fat; getfatd(&fat); printf(”Sectors...

Related posts brought to you by Yet Another Related Posts Plugin.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!