/* ECP: FILEname=fig11_16.c */ /* 1*/ void /* 2*/ Remove( Tree Root, const char *X ) /* 3*/ { /* 4*/ int Cmp; /* 5*/ if( Root == NULL ) /* Not Found */ /* 6*/ return; /* Do Nothing */ /* 7*/ else if( ( Cmp = strcmp( X, Root->Item ) ) < 0 ) /* 8*/ Remove( Root->Left, X ); /* 9*/ else if( Cmp > 0 ) /*10*/ Remove( Root->Right, X ); /*11*/ else if( Root->Count > 0 ) /*12*/ Root->Count--; /*13*/ }