MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / string_copy

Function string_copy

StereoKitC/libraries/stref.cpp:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13///////////////////////////////////////////
14
15char *string_copy(const char *aString) {
16 size_t size = strlen(aString) + 1;
17 char *result = (char*)STR_MALLOC(size);
18 memcpy(result, aString, size);
19 return result;
20}
21
22///////////////////////////////////////////
23

Callers 15

log_fail_reasonFunction · 0.85
string_makeFunction · 0.85
file_picker_open_folderFunction · 0.85
file_picker_updateFunction · 0.85
mic_startFunction · 0.85
render_screenshot_poseFunction · 0.85
tex_create_file_typeFunction · 0.85
tex_create_mem_typeFunction · 0.85
_tex_create_file_arrFunction · 0.85
tex_create_cubemap_fileFunction · 0.85
tex_set_memFunction · 0.85
anchor_create_manualFunction · 0.85

Calls 1

strlenFunction · 0.85

Tested by

no test coverage detected