/trunk/libmavl/mavtest.c |
---|
55,7 → 55,7 |
static void pcb(char*dst,struct mavlnode *n) |
{ |
int *d = mavlnode_dataptr(n); |
(void) sprintf(dst,"%d",*d); |
(void) sprintf(dst,"%d (%d)",*d,n->bal); |
} |
89,8 → 89,8 |
/* Put some random values into our MAVL tree */ |
for (i = 0; i < NUMVALS; i++) { |
/*insval = rand();*/ |
insval = i; |
(void)mavl_insert(t, &insval, &exists); |
insval = i+1; |
(void)mav_insert(t, &insval, &exists); |
(void)printf("%d. -----------------------------------------\n",i); |
mavl_print(t,pcb,80); |
} |