Is there any way to change directory using C language?

后端 未结 6 1845
无人及你
无人及你 2020-11-27 08:24

Is there any way by which I can change to any directory by executing a C program?

6条回答
  •  孤独总比滥情好
    2020-11-27 08:53

    Well, the POSIX command for changing the current directory is:

    chdir(const char*path);
    

    See the recent POSIX documentation for chdir() is here.

提交回复
热议问题