Work on ansi and clean Makefiles
FossilOrigin-Name: 0805f78d34219a2aac597a313081ce869c389e6b5d471c65c7f43d0906c0a400
This commit is contained in:
19
src/cw/mavliter_init.c
Normal file
19
src/cw/mavliter_init.c
Normal file
@ -0,0 +1,19 @@
|
||||
#include "mavl.h"
|
||||
|
||||
/**
|
||||
* Init an AVL Tree Iterator.
|
||||
*
|
||||
* After initialization #mavliter_next would return the first element.
|
||||
* The behavior of #mavliter_get would still be undefined.
|
||||
* @param i AVL Iterator to initialize
|
||||
* @param t correspondending AVL Tree
|
||||
*
|
||||
* @See mavliter_t,
|
||||
*/
|
||||
void mavliter_init(mavliter_t *i, mavl_t t){
|
||||
i->root = t->root;
|
||||
i->stack_ptr=0;
|
||||
i->cmp=t->cmp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user