1 . 絕對寫
DOS的INT25(絕對讀)、INT26(絕對寫)等功能調用實現對磁盤邏輯扇區或物理扇區的讀寫是很方便的,C語言中還有對應上述功能調用的函數:biosdisk、absread和abswrite等.
2 . 絕對扇區寫
abs返回絕對值absread絕對扇區讀abswrite絕對扇區寫access文件存取函數acos,acosl計算反余弦alloca分配堆棧空間…… 查看所有評論>> 商品評論(0) 0星很喜歡 0.
函數名: absread, abswirte 功 能: 絕對磁盤扇區讀、寫數據 用 法: int absread(int drive, int nsects, int sectno, void *buffer); int abswrite(int drive, int nsects, in tsectno, void *buffer); 程序例: /* absread example */ #include <stdio.h> #include <conio.h> #include <process.h> #include <dos.h> int main(void) { int i, strt, ch_out, sector; char buf[512]; printf("Inse