Linux 下获取当前程序运行的绝对路径

int get_module_path(string module_path) { char processdir[128] = {0}; char *pPath_end = NULL; if( readlink( "/proc/self/exe", processdir, sizeof(processdir)) > 0) { path_end = strrchr( process
相关文章
相关标签/搜索