X-Git-Url: https://git.kengrimes.com/?p=henge%2Fapc.git;a=blobdiff_plain;f=src%2Ftestston.c;fp=src%2Ftestston.c;h=71c01102489e50ca383fc74fb361a09ff89fc49c;hp=0000000000000000000000000000000000000000;hb=b0013aa7f2237fb88daf3f2ba856c8cdfe222fa2;hpb=8cae1f16c2a4294dddd26b21f03d594eca97ea8a diff --git a/src/testston.c b/src/testston.c new file mode 100644 index 0000000..71c0110 --- /dev/null +++ b/src/testston.c @@ -0,0 +1,16 @@ +#include "../ston/ston.h" +#include //malloc +#include //print + +int main(int argc, char* argv[]) +{ ston_ht ht; + uint32_t* htval; + + if ((ht = ston_ht32_new(2,1,0,malloc)) == NULL) + fprintf(stderr,"Could not allocate ht32\n"); + ston_ht32_insertx(ht,50,1,200); + htval = ston_ht32_entry(ht,50,1); + printf("[50][1] = %i\n",*htval); + free(ht); + return 0; +}