Skip to content

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

GLN_API const gln_account_t* GLN_CALL gln_get_bank_info_account_at(
    const gln_bank_info_t* in_info,
    size_t                 in_index);
  • Family: Typed info accessors
  • Return type: const gln_account_t*

Purpose

Returns the embedded gln_account_t row at in_index from the typed info view.

Return

Returns the borrowed row or entry at in_index, or NULL when the handle is NULL or the index is out of range.

TypeNullabilityOwnership
const gln_account_t*nullableborrowed

Parameters

NameDirectionTypeNullabilityOwnership
in_infoinputconst gln_bank_info_t*nullableborrowed
in_indexinputsize_tvaluevalue

Embedded Accounts

The info typed view copies each account row from the info result into embedded gln_account_t storage.

Use the same gln_get_account_* field accessors on these rows that are used for rows returned by gln_retrieve_accounts.

Notes

Passing NULL for in_info is allowed and returns NULL.

Indexes are zero-based. The accessor returns NULL when the index is outside the materialized collection.

The returned account row is borrowed from the parent backend result envelope and must not be released directly. Destroying the envelope invalidates the row and strings returned by gln_get_account_* accessors.

See Also