MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / ImStrdup

Function ImStrdup

ImGUI GLFW Tutorial/imgui/imgui.cpp:1320–1325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1318}
1319
1320char* ImStrdup(const char* str)
1321{
1322 size_t len = strlen(str);
1323 void* buf = IM_ALLOC(len + 1);
1324 return (char*)memcpy(buf, (const void*)str, len + 1);
1325}
1326
1327char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* src)
1328{

Callers 1

ImGuiWindowMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected