Skip to content
Snippets Groups Projects
Select Git revision
  • a10cfe43c17516d3a64446b557fa6e3a6e66af4a
  • master default protected
  • 5.x
  • ll-php8-bs5
  • release_5_bs5
  • ll-php8
  • 4.x
  • laminas_migration
  • release_1.0.0.2
  • release_4.0.0
  • release_3.2.8
  • bootstrap4_migration
  • 1.0.0.3
  • 6.0.7
  • 6.0.6
  • 6.0.5
  • 6.0.4
  • 6.0.3
  • 6.0.2
  • 6.0.1
  • 5.1.1
  • 6.0.0
  • 5.1.0
  • 5.0.0
  • 4.0.2
  • 3.2.11
  • 4.0.1
  • 3.2.10
  • 4.0.0
  • 1.0.0.2
  • 3.2.9
  • 3.2.8
32 results

Module.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    bst.h 448 B
    #ifndef __BST__
    #define __BST__
    
    struct node_t {
      unsigned long int key;
      void* val;
      struct node_t* left;
      struct node_t* right;
    };
    
    typedef struct bst_t {
      unsigned long int size;
      struct node_t* tree;
    } bst_t;
    
    unsigned long int hash(void*);
    bst_t bst_empty(void);
    int bst_is_empty(bst_t);
    bst_t bst_add(bst_t, void*);
    void bst_destroy(bst_t, void (*free_void)(void*));
    int bst_in(bst_t, void*);
    unsigned long int bst_size(bst_t);
    
    #endif