Skip to main content

Module strings

Module strings 

Source
Expand description

Owned-out-string allocation. Every C-ABI function that hands a string back to the caller goes through [alloc_c_string] (which returns a *const c_char the caller MUST free via kglite_free_string).

Convention: there is exactly ONE kglite_free_string. We never ship per-context variants — bindings learn the single freer and reach for it for every owned string from any kglite function.

Functions§

kglite_free_string
Free a string previously returned by any kglite_* function.