Linux下获取程序绝对路径(全路径)的方法

Linux下获取程序绝对路径(全路径)的方法code 直接上源代码:get #include <stdio.h> #include <unistd.h> #define MAXL_PATH 1024 /** * NAME: getAbsopath * DESC: 获取程序的绝对路径 * REMK: Absopath - Absolute path */ char* getAbsopath()
相关文章
相关标签/搜索