URI:
       hashtest.c - ltkx - GUI toolkit for X11 (old)
  HTML git clone git://lumidify.org/ltkx.git (fast, but not encrypted)
  HTML git clone https://lumidify.org/git/ltkx.git (encrypted, but very slow)
  HTML git clone git://4kcetb7mo7hj6grozzybxtotsub5bempzo4lirzc3437amof2c2impyd.onion/ltkx.git (over tor)
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       hashtest.c (627B)
       ---
            1 #include <stdio.h>
            2 #include "khash.h"
            3 
            4 KHASH_MAP_INIT_INT(m32, char)
            5 KHASH_MAP_INIT_INT(32hash, khash_t(m32)*)
            6 
            7 int main(int argc, char *argv[])
            8 {
            9         int ret, is_missing;
           10         khint_t k;
           11         khash_t(m32) *h = kh_init(m32);
           12         khash_t(32hash) *h1 = kh_init(32hash);
           13         k = kh_put(m32, h, 5, &ret);
           14         if (!ret) kh_del(m32, h, k);
           15         kh_value(h, k) = 10;
           16 
           17         k = kh_put(32hash, h1, 20, &ret);
           18         if (!ret) kh_del(32hash, h1, k);
           19         kh_value(h1, k) = h;
           20 
           21         k = kh_get(32hash, h1, 20);
           22         khash_t(m32) *bob = kh_value(h1, k);
           23         k = kh_get(m32, bob, 5);
           24         printf("%d\n", kh_value(bob, k));
           25 
           26         return 0;
           27 }