MCPcopy 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
693std::string GetCWD()
694{
695 std::unique_ptr<char, decltype(&std::free)> pathBuffer{ getcwd(nullptr, 0), &std::free };
696 return pathBuffer.get();
697}
698
699bool SetCWD(in_string newCWD) {
700 return chdir(newCWD.c_str()) != 0;

Callers 1

main.cppFile · 0.50

Calls 1

getMethod · 0.45

Tested by

no test coverage detected