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

Function dStrdup_r

Engine/source/core/strings/stringFunctions.cpp:216–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214// non-standard string functions
215
216char *dStrdup_r(const char *src, const char *fileName, dsize_t lineNumber)
217{
218 dsize_t bufferLen = dStrlen(src) + 1;
219 char *buffer = (char *) dMalloc_r(bufferLen, fileName, lineNumber);
220 dStrcpy(buffer, src, bufferLen);
221 return buffer;
222}
223
224char* dStrichr( char* str, char ch )
225{

Callers

nothing calls this directly

Calls 3

dMalloc_rFunction · 0.85
dStrcpyFunction · 0.85
dStrlenFunction · 0.70

Tested by

no test coverage detected