Sack Library Documentation
|
__cdecl TYPELIB_PROC PTREEROOT CreateBinaryTreeExtended(_32 flags, GenericCompare Compare, GenericDestroy Destroy DBG_PASS);
when adding a node if Compare is NULL the default method of a basic unsigned integer compare on the key value is done. if Compare is specified the specified key value of the orginal node (old) and of the new node (new) is added. Result of compare should be ( <0 (lesser)) ( 0 (equal)) ( >0 (greater))
if(oldnode>newnode) return 1; else if(oldnode<newnode) return -1; else return 0;
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|