函数名
searchpath
功 能
搜索DOS路径
用 法
char *searchpath(char *filename);
程序例
#include <stdio.h> #include <dir.h> int main(void) { char *p; /* Looks for TLINK and returns a pointer to the path */ p = searchpath("TLINK.EXE"); printf("Search for TLINK.EXE : %sn", p); /* Looks for non-existent file */ p = searchpath("NOTEXIST.FIL"); printf("Search for NOTEXIST.FIL : %sn", p); return 0; }