#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
int main(void)
{
char *path = NULL;
path = getcwd(NULL,0);
puts(path);
free(path);
return 0;
}
参考
https://blog.csdn.net/baidu_35085676/article/details/52002579
版权声明:本文为nongcunqq原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。