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);
file_path_getcwd=(char *)malloc(1024);
getcwd(file_path_getcwd,1024);
printf("current path:%s\r\n",file_path_getcwd);
相关文章推荐
- linux 内核中得到 当前进程 对应的可执行文件的 绝对路径
- linux 内核中得到 当前进程 对应的可执行文件的 绝对路径(转)
- linux 内核中得到 当前进程 对应的可执行文件的 绝对路径
- Linux 输出当前路径下某个文件的绝对路径
- linux c 获得当前进程的进程名和执行路径(示例)
- linux 查看当前路径命令:pwd
- Linux下命令行显示当前全路径方法
- Linux下使用Shell脚本改变当前工作路径
- ubuntu下新建用户的终端不显示当前路径,不能用上下光标键得到使用过的命名解决办法
- 如何在驱动程序(SYS)中得到当前进程的完整路径和进程名?
- 通过注册表的句柄得到当前句柄在注册表中的路径
- 一些得到classpath和当前类的绝对路径的一些方法
- Linux:获取当前进程的执行文件的绝对路径
- linux 获取当前工作路径
- 批处理bat文件得到当前绝对路径、盘符等
- linux在主机名后自动显示当前路径
- linux 显示当前路径
- java中得到classpath和当前类的绝对路径的一些方法(路径中的%20"进行替换空格)
- linux下获取程序当前目录绝对路径
- 得到当前目录的最大深度以及最深路径