函数名: searchpath
功 能: 搜索DOS路径
用 法: #include <dir.h>
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 : %s\n", p);
/* Looks for non-existent file */
p = searchpath("NOTEXIST.FIL");
printf("Search for NOTEXIST.FIL : %s\n", p);
return 0;
}