MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / xr_strdup

Function xr_strdup

ogsr_engine/xrCore/_std_extensions.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33char* xr_strdup(const char* string)
34{
35 VERIFY(string);
36 size_t len = strlen(string) + 1;
37 char* memory = (char*)xr_malloc(len);
38 CopyMemory(memory, string, len);
39 return memory;
40}
41
42// Очень полезная штука из OpenXRay
43std::string StringToUTF8(const char* in)

Callers 15

LoadItemDataFunction · 0.85
CCC_GameLanguageMethod · 0.85
OnFrameMethod · 0.85
ClientReceiveMethod · 0.85
load_dataMethod · 0.85
set_name_replaceFunction · 0.85
load_sharedMethod · 0.85
cloneMethod · 0.85
cloneFunction · 0.85
load_sharedMethod · 0.85
EnumerateMethod · 0.85
ExecuteMethod · 0.85

Calls 2

xr_mallocFunction · 0.85
CopyMemoryFunction · 0.85

Tested by 1

load_sharedMethod · 0.68