MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / catPath

Function catPath

Engine/source/platform/platformFileIO.cpp:217–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215//-----------------------------------------------------------------------------
216
217inline void catPath(char *dst, const char *src, U32 len)
218{
219 if(*dst != '/')
220 {
221 ++dst; --len;
222 *dst = '/';
223 }
224
225 ++dst; --len;
226
227 dStrncpy(dst, src, len);
228 dst[len - 1] = 0;
229}
230
231// converts the posix root path "/" to "c:/" for win32
232// FIXME: this is not ideal. the c: drive is not guaranteed to exist.

Callers 1

makeFullPathNameMethod · 0.85

Calls 1

dStrncpyFunction · 0.85

Tested by

no test coverage detected