MCPcopy Create free account
hub / github.com/ROCm/clr / getLogFileName

Function getLogFileName

opencl/tests/ocltst/env/ServiceCode.cpp:40–46  ·  view source on GitHub ↗

///////////////////// log relate functions // /////////////////////

Source from the content-addressed store, hash-verified

38// log relate functions //
39//////////////////////////
40void getLogFileName(wchar_t fileName[MAX_PATH]) {
41 DWORD dwSize = GetModuleFileNameW(NULL, fileName, MAX_PATH);
42 wchar_t* p = fileName + dwSize;
43 while (*p != '\\' && p > fileName) p--;
44 p++;
45 wcscpy(p, L"result.txt");
46}
47
48VOID WriteLog(const wchar_t* pMsg) {
49 static wchar_t fileName[MAX_PATH] = {0};

Callers 2

WriteLogFunction · 0.85
AppendLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected