2018-03-11 00:56:41 +01:00
|
|
|
#include "mavl.h"
|
2022-07-18 01:15:17 +02:00
|
|
|
#include "mavltypes.h"
|
2018-03-11 00:56:41 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the element, where AVL Iterator currently is positioned.
|
|
|
|
* @param i AVL Iterator
|
|
|
|
* @return element or NULL if not found.
|
|
|
|
*/
|
|
|
|
void * mavliter_get_ptr(mavliter_t *i)
|
|
|
|
{
|
|
|
|
/*void * data;*/
|
|
|
|
if (!i->cur)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
return *(void**)(mavlnode_dataptr(i->cur));
|
|
|
|
}
|