changes for actubent - not compiling!
FossilOrigin-Name: adf99bdc2ee784a4acf4066b90c33fb1e6124e8c49c255d3fd5011bb33852d52
This commit is contained in:
11
src/cw/mavl_get_ptr.c
Normal file
11
src/cw/mavl_get_ptr.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include "mavl.h"
|
||||
|
||||
void * mavl_get_ptr(mavl_t tree, void * search)
|
||||
{
|
||||
mavldata_t search_data, *result;
|
||||
search_data.ptr=search;
|
||||
result = mavl_find(tree,&search_data);
|
||||
if (result)
|
||||
return result->ptr;
|
||||
return NULL;
|
||||
}
|
Reference in New Issue
Block a user