|
MGE General C Library - API Documentation v1.9.0
Library of general C functions.
|
Binary search tree. More...
#include <mge-bstree.h>

Data Fields | |
| struct bstreenode * | root |
| The root node of the tree. | |
| int | unique |
| Uniqueness of nodes. | |
| int | count_total |
| Sum of all node counters. | |
| int | node_total |
| Number of nodes in the tree. | |
| int(* | comp )(const void *, const void *) |
| Comparison function. | |
Binary search tree.
| int(* comp) (const void *, const void *) |
Comparison function.
This function must have the same signature as strcmp() allbeit with void parameters.
| int count_total |
Sum of all node counters.
| int node_total |
Number of nodes in the tree.
| struct bstreenode* root |
The root node of the tree.
| int unique |
Uniqueness of nodes.
Should be either BST_NODES_UNIQUE or BST_NODES_DUPLICATES.