送交者: 江毅 于 2005-2-20, 19:01:25:
回答: how to find CPU frequency on Linux? 由 neo6 于 2005-2-20, 13:02:09:
我用过:
DWORD GetExePathNFileName(LPSTR buf,DWORD c)
{
readlink("/proc/self/exe", buf, c );
return strlen(buf);
}
根据wasguru提供的信息推想,得到起始工作目录可用
readlink("/proc/self/cwd", buf, c );
江毅
www.hanwj.com