new mavl is working now
FossilOrigin-Name: 65a4eefffea57509c0d7fd573e53b15bf4a730ce297b7db182aaac796ea92448
This commit is contained in:
15
src/cw/mavliter_get_ptr.c
Normal file
15
src/cw/mavliter_get_ptr.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include "mavl.h"
|
||||
|
||||
/**
|
||||
* 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));
|
||||
}
|
Reference in New Issue
Block a user