複製鏈接
請複製以下鏈接發送給好友

abswrite

鎖定
abswrite,數學名詞,函數名。
外文名
abswrite
定    義
函數名
功 能1
絕對磁盤扇區讀數據
功能2
絕對磁盤扇區寫數據

abswrite函數名

absread, abswirte

abswrite功 能

:絕對磁盤扇區讀、寫數據

abswrite用 法

int absread(int drive, int nsects, int sectno, void *buffer);
int abswrite(int drive, int nsects, in tsectno, void *buffer);

abswrite程序例

/* absread example */
#include
#include
#include
#include
int main(void)
{
int i, strt, ch_out, sector;
char buf[512];
printf("Insert a diskette into drive A and press any key\n");
getch();
sector = 0;
if (absread(0, 1, sector, &buf) != 0)
{
perror("Disk problem");
exit(1);
}
printf("Read OK\n");
strt = 3;
for (i=0; i<80; i++)
{
ch_out = buf[strt+i];
putchar(ch_out);
}
printf("\n");
return(0);
}