MCPcopy Create free account
hub / github.com/Kitware/CMake / GetCurrentWorkingDirectory

Method GetCurrentWorkingDirectory

Source/kwsys/SystemTools.cxx:3283–3293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3281}
3282
3283std::string SystemTools::GetCurrentWorkingDirectory()
3284{
3285 char buf[2048];
3286 char const* cwd = Getcwd(buf, 2048);
3287 std::string path;
3288 if (cwd) {
3289 path = cwd;
3290 SystemTools::ConvertToUnixSlashes(path);
3291 }
3292 return path;
3293}
3294
3295std::string SystemTools::GetProgramPath(std::string const& in_name)
3296{

Callers

nothing calls this directly

Calls 1

GetcwdFunction · 0.70

Tested by

no test coverage detected