2018-03-04 16:59:20 +01:00
|
|
|
#include "mavl.h"
|
|
|
|
|
2018-03-12 11:22:06 +01:00
|
|
|
void *mavl_add_ptr(mavl_t tree, const void *ptr){
|
2018-03-11 00:56:41 +01:00
|
|
|
void * result;
|
|
|
|
result = mavl_add(tree,&ptr,NULL);
|
2018-03-04 16:59:20 +01:00
|
|
|
if (result)
|
2018-03-11 00:56:41 +01:00
|
|
|
return *(void**)result;
|
2018-03-04 16:59:20 +01:00
|
|
|
return NULL;
|
|
|
|
}
|