-
bdosptr
鎖定
bdosptr是一個函數,功 能: DOS系統調用
- 外文名
- bdosptr
- 類 型
- 函數
- 功 能
- DOS系統調用
- 領 域
- 計算機技術
bdosptr函數名
bdosptr
bdosptr功能
DOS系統調用
bdosptr用法
int bdosptr(int dosfun, void *argument, unsigned dosal);
bdosptr程序例
#include <string.h>
#include <stdio.h>
#include <dir.h>
#include <dos.h>
#include <errno.h>
#include <stdlib.h>
#define BUFLEN 80
int main(void)
{
char buffer[BUFLEN];
int test;
printf("Enter full pathname of a directory\n");
gets(buffer);
test = bdosptr(0x3B,buffer,0);
if(test)
{
printf("DOS error message: %d\n", errno);
/* See errno.h for error listings */
exit (1);
}
getcwd(buffer, BUFLEN);
printf("The current directory is: %s\n", buffer);
return 0;
}
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:10次歷史版本
- 最近更新: silk20001016