Skip to content

Declared in <galanthus/c_api/gln_capi.h>.

GLN_API void GLN_CALL gln_release_string(char* in_string);
  • Family: Destroy and release functions
  • Return type: void

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.

TypeNullabilityOwnership
voidvaluevalue

Parameters

NameDirectionTypeNullabilityOwnership
in_stringinputchar*nonnullborrowed

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.

See Also