debug
This commit is contained in:
parent
7c3df62d86
commit
02e008c03a
@ -56,6 +56,7 @@ TreeNode *addToTreeRec(TreeNode *currentNode, TreeNode *newNode, CompareFctType
|
|||||||
{
|
{
|
||||||
return newNode;
|
return newNode;
|
||||||
}
|
}
|
||||||
|
// dosn't consider is Duplicate != Null upon root Null
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return currentNode;
|
return currentNode;
|
||||||
@ -140,7 +141,7 @@ void clearNode(TreeNode *node)
|
|||||||
// printf("left & right = Null\n");
|
// printf("left & right = Null\n");
|
||||||
printf("node = %u\n", &node);
|
printf("node = %u\n", &node);
|
||||||
// printf("node = %u\n", _ADDRESSOF(node));
|
// printf("node = %u\n", _ADDRESSOF(node));
|
||||||
// free(node);
|
free(node);
|
||||||
// printf("node = %d\n", node);
|
// printf("node = %d\n", node);
|
||||||
node = NULL;
|
node = NULL;
|
||||||
printf("node = %u\n", &node);
|
printf("node = %u\n", &node);
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user