MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / ImStrdup

Function ImStrdup

lib/imgui/imgui.cpp:1261–1266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1259}
1260
1261char* ImStrdup(const char* str)
1262{
1263 size_t len = strlen(str);
1264 void* buf = IM_ALLOC(len + 1);
1265 return (char*)memcpy(buf, (const void*)str, len + 1);
1266}
1267
1268char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* src)
1269{

Callers 1

ImGuiWindowMethod · 0.85

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected