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

This commit is contained in:
hofmannjo99187 committed 2025-12-13 16:35:36 +01:00
1 parent 686fe8d844
commit b69cfb0640
4 files changed
+4 -3

No files matched your search

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.