[C] 搜索DOS路径 →→→→→进入此内容的聊天室

来自 , 2019-09-22, 写在 C, 查看 113 次.
URL http://www.code666.cn/view/46a558d9
  1. #include <stdio.h>
  2. #include <dir.h>
  3.  
  4. int main(void)
  5. {
  6.    char *p;
  7.  
  8.    /* Looks for TLINK and returns a pointer
  9.       to the path  */
  10.    p = searchpath("TLINK.EXE");
  11.    printf("Search for TLINK.EXE : %s\n", p);
  12.  
  13.    /* Looks for non-existent file  */
  14.    p = searchpath("NOTEXIST.FIL");
  15.    printf("Search for NOTEXIST.FIL : %s\n", p);
  16.  
  17.    return 0;
  18. }
  19.  

回复 " 搜索DOS路径"

这儿你可以回复上面这条便签

captcha