Function ds_iter_init

Function Documentation

struct ds_iterator *ds_iter_init(void *ds, enum ds_tag tag, enum ds_iter_type type)

Initialize an iterator.

Initialize an iterator to iterate over all of the elements of a data structure. Implemented for:

Parameters:
  • ds – The data structure to iterate over.

  • tag – What type of data structure to initialize for.

  • type – What type of iteration to perform.

Returns:

The initialized iterator, or NULL if an ERROR occurred