MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / getTemporaryDirectory

Function getTemporaryDirectory

src/backend/common/util.cpp:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146#if defined(OS_WIN)
147string getTemporaryDirectory() {
148 DWORD bufSize = 261; // limit according to GetTempPath documentation
149 string retVal;
150 retVal.resize(bufSize);
151 bufSize = GetTempPathA(bufSize, &retVal[0]);
152 retVal.resize(bufSize);
153 return retVal;
154}
155#else
156string getHomeDirectory() {
157 string home = getEnvVar("XDG_CACHE_HOME");

Callers 1

util.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected