我正在编写一个C程序,其中我需要获取启动该程序的目录。这个程序是为UNIX计算机编写的。我一直在寻找opendir()和telldir(),但是telldir()返回了一个off_t (long int),所以它对我没有什么帮助。
opendir()
telldir()
off_t (long int)
如何获取字符串(char数组)中的当前路径?
https://stackoverflow.com/questions/298510
相似问题