Skip to content
Snippets Groups Projects
Select Git revision
  • b1fa9b6c964f99cf7ea30dae431f30e0680fb5c3
  • master default
  • 5.x
  • 7
  • 6.0.question
  • bg-php8
  • release_3.1.0
  • release_4.0.0
  • zf-3.0
  • zf-3.x
  • 6.0.5
  • 6.0.4
  • 5.0.5
  • 7.0.3
  • 7.0.2
  • 6.0.3
  • 6.0.2
  • 6.0.1
  • 5.0.4
  • 7.0.1
  • 5.0.3
  • 5.0.2
  • 5.0.1
  • 7.0.0
  • 6.0.0
  • 4.0.2
  • 5.0.0
  • 3.2.0
  • 3.1.21
  • 3.1.20
30 results

Module.php

Blame
  • Forked from lib / unicaen / ldap
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    hash_tbl.h 513 B
    #ifndef __HASH_TBL__
    #define __HASH_TBL__
    
    #include "linked_list.h"
    
    struct hash_tbl {
      size_t (*h)(void*);
      int (*eq)(void*, void*);
      void (*free)(void*);
      unsigned long int size;
      unsigned long int 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, void*);
    int htbl_in(hash_tbl, void*);
    void htbl_free(hash_tbl);
    
    #endif