Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JibbSmart/JoyShockMapper
/ GetCWD
Function
GetCWD
JoyShockMapper/src/linux/InputHelpers.cpp:693–697 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
691
}
692
693
std::string GetCWD()
694
{
695
std::unique_ptr<char, decltype(&std::free)> pathBuffer{ getcwd(nullptr, 0), &std::free };
696
return pathBuffer.get();
697
}
698
699
bool SetCWD(in_string newCWD) {
700
return chdir(newCWD.c_str()) != 0;
Callers
1
main.cpp
File · 0.50
Calls
1
get
Method · 0.45
Tested by
no test coverage detected