请输入您要查询的百科知识:

 

词条 bdos
释义

§ 函数名

bdos

§ 功能

DOS系统调用

§ 函数语法

int bdos(int dosfun, unsigned dosdx, unsigned dosal);

§ 程序实例

#include <stdio.h>

#include <dos.h>

/* Get current drive as 'A', 'B', ... */

char current_drive(void)

{

char curdrive;

/* Get current disk as 0, 1, ... */

curdrive = bdos(0x19, 0, 0);

return('A' + curdrive);

}

int main(void)

{

printf("The current drive is %c:\", current_drive());

return 0;

}

随便看

 

百科全书收录594082条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2024/9/21 19:56:46