2018-03-03 17:42:28 +01:00
|
|
|
#include "mavl.h"
|
|
|
|
|
|
|
|
void * mavl_get_ptr(mavl_t tree, void * search)
|
|
|
|
{
|
2018-03-11 00:56:41 +01:00
|
|
|
void * result;
|
|
|
|
|
|
|
|
result = mavl_find(tree,&search);
|
2018-03-03 17:42:28 +01:00
|
|
|
if (result)
|
2018-03-11 00:56:41 +01:00
|
|
|
return *(void**)result;
|
2018-03-03 17:42:28 +01:00
|
|
|
return NULL;
|
|
|
|
}
|