mirror of
https://github.com/CrazyRedMachine/popnhax.git
synced 2024-12-18 07:55:52 +01:00
15 lines
238 B
C
15 lines
238 B
C
#ifndef __BST_H__
|
|
#define __BST_H__
|
|
|
|
typedef struct bst_s
|
|
{
|
|
uint32_t data;
|
|
struct bst_s *right;
|
|
struct bst_s *left;
|
|
} bst_t;
|
|
|
|
bst_t* bst_search(bst_t *root, uint32_t val);
|
|
bst_t* bst_insert(bst_t *root, uint32_t val);
|
|
|
|
#endif
|