actube/src/cw/mavl_add_ptr.c

11 lines
190 B
C
Raw Normal View History

#include "mavl.h"
void *mavl_add_ptr(mavl_t tree, void *ptr){
mavldata_t data, *result;
data.ptr = ptr;
result = mavl_add(tree,&data);
if (result)
return result->ptr;
return NULL;
}