BOOL SetCurrentDirectory(
LPCTSTR lpPathName // pointer to name of new current directory
);
DWORD GetCurrentDirectory(
DWORD nBufferLength, // size, in characters, of directory buffer
LPTSTR lpBuffer // pointer to buffer for current directory
);
제가 하는 작업 중에 현재의 currentDirectory에 임시 파일을 만들고 그 파일을 이용해서 뭔가를 하는 일이 필요합니다.
윈도우에서는 위의 함수들을 이용하여 Working Directory를 가져오거나 세팅할 수 있었는데,
유닉스/리눅스 계열에서는 어떻게 해야하는 지 모르겠더군요.