MCPcopy Create free account
hub / github.com/JochenKalmbach/StackWalker / MyStrCpy

Function MyStrCpy

Main/StackWalker/StackWalker.cpp:236–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234#endif
235
236static void MyStrCpy(char* szDest, size_t nMaxDestSize, const char* szSrc)
237{
238 if (nMaxDestSize <= 0)
239 return;
240 strncpy_s(szDest, nMaxDestSize, szSrc, _TRUNCATE);
241 // INFO: _TRUNCATE will ensure that it is null-terminated;
242 // but with older compilers (<1400) it uses "strncpy" and this does not!)
243 szDest[nMaxDestSize - 1] = 0;
244} // MyStrCpy
245
246// Normally it should be enough to use 'CONTEXT_FULL' (better would be 'CONTEXT_ALL')
247#define USED_CONTEXT_FLAGS CONTEXT_FULL

Callers 2

StackWalker.cppFile · 0.85
OnCallstackEntryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected