MCPcopy Create free account
hub / github.com/aardappel/treesheets / MyStrCpy

Function MyStrCpy

lobster/include/StackWalker/StackWalker.cpp:240–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

StackWalker.cppFile · 0.70
OnCallstackEntryMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected