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

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;
}