MCPcopy Create free account
hub / github.com/diasurgical/devilution / StringCat

Function StringCat

3rdParty/StormLib/src/SBaseCommon.cpp:112–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void StringCat(char * szTarget, size_t cchTargetMax, const char * szSource)
113{
114 // Get the current length of the target
115 size_t cchTarget = strlen(szTarget);
116
117 // Copy the string to the target
118 if(cchTarget < cchTargetMax)
119 {
120 StringCopy(szTarget + cchTarget, (cchTargetMax - cchTarget), szSource);
121 }
122}
123
124//-----------------------------------------------------------------------------
125// Utility functions (UNICODE) only exist in the ANSI version of the library

Callers 1

FindPatchEntryFunction · 0.85

Calls 1

StringCopyFunction · 0.85

Tested by

no test coverage detected