2018-02-28 09:05:45 +01:00
|
|
|
#include "mavl.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the element, where AVL Iterator currently is positioned.
|
|
|
|
* @param i AVL Iterator
|
|
|
|
* @return element or NULL if not found.
|
|
|
|
*/
|
2018-03-03 17:42:28 +01:00
|
|
|
union mavldata * mavliter_get(mavliter_t *i){
|
2018-02-28 09:05:45 +01:00
|
|
|
if(!i->cur)
|
|
|
|
return NULL;
|
2018-03-03 17:42:28 +01:00
|
|
|
return &i->cur->data;
|
2018-02-28 09:05:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|