GALANTHUS / ABI FUNCTION REFERENCE
gln_release_string
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API void GLN_CALL gln_release_string(char* in_string);
Purpose
Releases a caller-owned string whose ownership was transferred out of the Galanthus C ABI.
The string remains valid until this function releases it. After release, the string pointer and every pointer into that allocation are invalid; the caller's pointer variable is not cleared.
Return
Returns no value.
| Type | Nullability | Ownership |
|---|---|---|
void | value | value |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_string | input | char* | nonnull | borrowed |
Notes
Passing NULL for in_string is allowed and has no effect.
gln_describe_continuation returns a caller-owned JSON string through out_describe_json; release that returned string with gln_release_string.