Subversion Repositories PlanixRsrch.SVN

Compare Revisions

Ignore whitespace Rev 39 → Rev 40

/trunk/libmavl/mavl_print.c
43,19 → 43,14
if (!n)
return;
if (cdepth==depth){
/* int v;
void *dp;
dp = mavlnode_dataptr(n);
v = *((int*)(dp));*/
pcb(temp,n);
/* (void)sprintf(temp,"(%d [%d])",v,n->bal);*/
(void)strncpy(buffer+x,temp,strlen(temp));
return ;
}
if (cdepth>depth)
return;
print0(n->left,depth,cdepth+1,x-width/(2<<(de+1)),buffer,width,pcb);
print0(n->right,depth,cdepth+1,x+width/(2<<(de+1)),buffer,width,pcb);
print0(n->s[0],depth,cdepth+1,x-width/(2<<(de+1)),buffer,width,pcb);
print0(n->s[1],depth,cdepth+1,x+width/(2<<(de+1)),buffer,width,pcb);
 
}