MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / ImStrncpy

Function ImStrncpy

Source/3rdParty/imgui/imgui.cpp:2154–2161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2152}
2153
2154void ImStrncpy(char* dst, const char* src, size_t count)
2155{
2156 if (count < 1)
2157 return;
2158 if (count > 1)
2159 strncpy(dst, src, count - 1); // FIXME-OPT: strncpy not only doesn't guarantee 0-termination, it also always writes the whole array
2160 dst[count - 1] = 0;
2161}
2162
2163char* ImStrdup(const char* str)
2164{

Callers 6

ImGuiTextFilterMethod · 0.85
SetContextNameMethod · 0.85
SetDragDropPayloadMethod · 0.85
InputTextExMethod · 0.85
SetupAxisFormatFunction · 0.85

Calls 1

strncpyFunction · 0.85

Tested by

no test coverage detected