Skip to content
Snippets Groups Projects
Select Git revision
  • 781a17836d6dc1e4126fb24e32a57a35c46bc61f
  • master default protected
  • release_1.4.0
  • release_1.3.0
  • release_1.2.0
  • 8.4
  • release_1.1.0
  • release_1.0.6
  • release_1.0.5
  • release_1.0.4
  • 1.2.3
  • 1.2.2
  • 1.2.1
  • 1.2.0
  • 1.1.0
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
21 results

indicateurs.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    hash_tbl.c 529 B
    #include <stddef.h>
    #include "list.h"
    
    #define ARRAY_CAPACITY 1 << 16
    
    struct hash_tbl {
      size_t (*h)(void*);
      int (*eq)(void*, void*);
      void (*free)(void*);
      unsigned long int size;
      size_t capacity; // array length
      list_t* array;
    };
    
    typedef struct hash_tbl* hash_tbl;
    
    hash_tbl htbl_empty(size_t (*h)(void*),
                        int (*eq)(void*, void*),
                        void (*free)(void*)){
    }
    
    int htbl_add(hash_tbl htbl, void* x){
    }
    
    int htbl_in(hash_tbl htbl, void* x){
    }
    
    void htbl_destroy(hash_tbl htbl){
    }