Sack Library Documentation
ContentsIndexReferenceHome
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 );
   
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.