您的位置:首页 > 运维架构 > Linux

linux得到当前路径

2013-11-28 14:51 253 查看
char *file_path_getcwd;

file_path_getcwd=(char *)malloc(1024);

getcwd(file_path_getcwd,1024);

printf("current path:%s\r\n",file_path_getcwd);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: