MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / Realpath

Function Realpath

Bcore/src/main/cpp/android-base/file.cpp:251–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249
250#if !defined(_WIN32)
251bool Realpath(const std::string& path, std::string* result) {
252 result->clear();
253
254 char* realpath_buf = realpath(path.c_str(), nullptr);
255 if (realpath_buf == nullptr) {
256 return false;
257 }
258 result->assign(realpath_buf);
259 free(realpath_buf);
260 return true;
261}
262#endif
263
264std::string GetExecutablePath() {

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected