MCPcopy Create free account
hub / github.com/RenderKit/embree / ImStrncpy

Function ImStrncpy

tutorials/common/imgui/imgui.cpp:1636–1643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1634}
1635
1636void ImStrncpy(char* dst, const char* src, size_t count)
1637{
1638 if (count < 1)
1639 return;
1640 if (count > 1)
1641 strncpy(dst, src, count - 1);
1642 dst[count - 1] = 0;
1643}
1644
1645char* ImStrdup(const char* str)
1646{

Callers 4

ImGuiTextFilterMethod · 0.85
SetDragDropPayloadMethod · 0.85
InputTextExMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected