Skip to content

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

GLN_API const char* GLN_CALL gln_get_balance_currency(const gln_balance_t* in_balance);
  • Family: Row field accessors
  • Return type: const char*

Purpose

Returns the balance currency code.

Return

Returns the currency associated with the balance amount and related balance amount fields. Read it together with gln_get_balance_amount; currency is exposed through this accessor when materialized separately.

TypeNullabilityOwnership
const char*nullableborrowed

Parameters

NameDirectionTypeNullabilityOwnership
in_balanceinputconst gln_balance_t*nullableborrowed

Amount Semantics

Returns the currency associated with the balance amount and related balance amount fields. Read it together with gln_get_balance_amount; currency is exposed through this accessor when materialized separately.

Owned producers usually materialize ISO 4217-style currency codes. Treat the value as an open provider string.

Notes

Passing NULL for in_balance is allowed and returns NULL.

Rows returned by the matching _at accessor carry this field as part of the materialized typed result.

The returned pointer is borrowed from the owning backend result envelope and becomes invalid when that envelope is destroyed.

See Also