-xbt_error_t
-xbt_dict_cursor_get_data(xbt_dict_cursor_t cursor,
- /*OUT*/void **data) {
- xbt_error_t errcode = no_error;
- char *key = NULL;
- int key_len = 0;
-
- TRY(__cursor_not_null(cursor));
-
- key = xbt_dynar_get_as(cursor->keys, cursor->pos-1, char *);
- key_len = xbt_dynar_get_as(cursor->key_lens, cursor->pos_len-1, int);
-
- TRY(xbt_dictelm_get_ext(cursor->head, key, key_len, data));