mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Fonts: ImFontConfig::GlyphExcludeRanges is owner and copied.
This commit is contained in:
parent
da51485e17
commit
c98e3c0eff
4 changed files with 24 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue