C Codes
Beginners
C on Unix
Code Snippets
Data Structures
File Operations
Games Graphics
Gnu-Linux
Hardware
Mathematics
Miscellaneous
Small Programs
Sorting
C > Code Snippets sample source codes
Absread in C
Absread in C This reads individual disk sectors , compiled with Turbo C #include
#include
#include
#include
int main(void) { unsigned char buffer[512]; clrscr(); printf("Insert disk in the A: drive , then press any key.\n"); /*wait for keypress*/ getch(); if(absread(0,1,1,&buffer) != 0) printf("Cannot read the A drive.\n"); else printf("Drive A , Sector 1 read\n"); return 0; }
Privacy Policy
|
Link to Us
|
Links