changed numbers.c so that it works with new nextTreeData() function

This commit is contained in:
2025-12-13 16:35:36 +01:00
parent 686fe8d844
commit b69cfb0640
4 changed files with 4 additions and 3 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+4 -3
View File
@@ -31,13 +31,14 @@ static int existsInTree(TreeNode *root, unsigned int value)
unsigned int *data;
// Traversierung initialisieren
nextTreeData(root);
data = nextTreeData(root);
while ((data = nextTreeData(NULL)) != NULL)
do
{
if (*data == value)
return 1;
}
} while ((data = nextTreeData(NULL)) != NULL);
return 0;
}
BIN
View File
Binary file not shown.