1
This commit is contained in:
parent
593a86acaa
commit
7e75758d1f
@ -36,13 +36,12 @@ TreeNode *addToTree(TreeNode *root, const void *data, size_t dataSize, CompareFc
|
||||
*isDuplicate = 0;
|
||||
}
|
||||
if (!root)
|
||||
{ // wurzerl == 0;
|
||||
{ // wurzel == 0;
|
||||
TreeNode *newNode = createNode(data, dataSize);
|
||||
return newNode;
|
||||
}
|
||||
// wenn duplicate NUll -> doppelt hinzufügen
|
||||
//
|
||||
|
||||
|
||||
if (compareFct(data, root->data) < 0)
|
||||
{
|
||||
root->left = addToTree(root->left, data, dataSize, compareFct, isDuplicate);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user