MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / dStrdup_r

Function dStrdup_r

engine/source/platformAndroid/AndroidStrings.cpp:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#include "debug/profiler.h"
32
33char *dStrdup_r(const char *src, const char *file, dsize_t line)
34{
35 char *buffer = (char *) dMalloc_r(dStrlen(src) + 1, file, line);
36 dStrcpy(buffer, src);
37 return buffer;
38}
39
40char *dStrnew(const char *src)
41{

Callers

nothing calls this directly

Calls 3

dMalloc_rFunction · 0.85
dStrlenFunction · 0.70
dStrcpyFunction · 0.70

Tested by

no test coverage detected