Documentation Project 1
ContentsIndexHome
Example
int CPROC MyGenericCompare( PTRSZVAL oldnode,PTRSZVAL newnode )
{
   if(oldnode>newnode)
       return 1;
   else if(oldnode<newnode)
       return -1;
   else return 0;
   
   return (oldnode>newnode)? 1
          :(oldnode<newnode)? -1
          :0;
}
void CPROC MyGenericDestroy(POINTER user, PTRSZVAL key)
{
   /* do something custom with your user data and or key value */
}
   
PTREEROOT tree = CreateBinaryTreeExtended( 0 // BT_OPT_NODUPLICATES
                                         , MyGenericCompare
                                         , MyGenericDestroy
                                         DBG_SRC );
   
Copyright (c) 2010. All rights reserved.