71c01102489e50ca383fc74fb361a09ff89fc49c
[henge/apc.git] / src / testston.c
1 #include "../ston/ston.h"
2 #include <stdlib.h> //malloc
3 #include <stdio.h> //print
4
5 int main(int argc, char* argv[])
6 { ston_ht ht;
7 uint32_t* htval;
8
9 if ((ht = ston_ht32_new(2,1,0,malloc)) == NULL)
10 fprintf(stderr,"Could not allocate ht32\n");
11 ston_ht32_insertx(ht,50,1,200);
12 htval = ston_ht32_entry(ht,50,1);
13 printf("[50][1] = %i\n",*htval);
14 free(ht);
15 return 0;
16 }