MGE General C Library - Full Internal Documentation v1.8.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. More... | |
int | unique |
Uniqueness of nodes. More... | |
int | count_total |
Sum of all node counters. More... | |
int | node_total |
Number of nodes in the tree. More... | |
int(* | comp )(const void *, const void *) |
Comparison function. More... | |
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.