mirror of
https://github.com/ocornut/imgui.git
synced 2025-10-26 12:27:30 +00:00
Fonts: ImFontConfig::GlyphExcludeRanges is owner and copied.
This commit is contained in:
@@ -2011,6 +2011,12 @@ char* ImStrdup(const char* str)
|
||||
return (char*)memcpy(buf, (const void*)str, len + 1);
|
||||
}
|
||||
|
||||
void* ImMemdup(const void* src, size_t size)
|
||||
{
|
||||
void* dst = IM_ALLOC(size);
|
||||
return memcpy(dst, src, size);
|
||||
}
|
||||
|
||||
char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* src)
|
||||
{
|
||||
size_t dst_buf_size = p_dst_size ? *p_dst_size : ImStrlen(dst) + 1;
|
||||
|
||||
Reference in New Issue
Block a user