1 #include "apue.h"
 2 #include <fcntl.h>
 3 
 4 int main(void)
 5 {
 6     if(chdir("/home/zsf/book/unix/source_code/apue.3e/mycode/test") < 0)
 7         err_sys("chdir failed");
 8     printf("success chdri to /home/zsf/book/unix/source_code/apue.3e/mycode/test");
 9     creat("hello",O_RDWR);
10 
11     return 0;
12 }
13 ~     

chdir函数的使用【学习笔记】

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-05-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案