tranger2_close_iterator()

tranger2_close_iterator()#

Closes an iterator in the TimeRanger 2 database, releasing associated resources.

Prototype

int tranger2_close_iterator(
    json_t *tranger,
    json_t *iterator
);

Parameters

Key

Type

Description

tranger

json_t *

A pointer to the TimeRanger 2 database instance.

iterator

json_t *

A pointer to the iterator object to be closed.


Return Value

Returns 0 on success, or a negative value on failure.

Notes

Closing an iterator ensures that any allocated memory or resources are properly released.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples