Function ecs_iter_str

Synopsis

#include <include/flecs.h>

FLECS_API char * ecs_iter_str(const ecs_iter_t *it)

Description

Convert iterator to string. Prints the contents of an iterator to a string. Useful for debugging and/or testing the output of an iterator.

The function only converts the currently iterated data to a string. To convert all data, the application has to manually call the next function and call ecs_iter_str on each result.

Parameters

it - The iterator.

next - The function used to progress the iterator.

Returns
A string representing the contents of the iterator.

Source

Line 2970 in include/flecs.h.