--- libaitio/example/Attic/test_vars.c 2012/08/01 00:37:07 1.4 +++ libaitio/example/Attic/test_vars.c 2012/08/29 13:50:55 1.4.4.4 @@ -104,6 +104,15 @@ main(int argc, char **argv) v = io_findKeyVars(arr, 99); printf("search for key=99 %s\n", v ? AIT_GET_LIKE(v, char*) : ""); + io_hashKeyVars(arr); + + v = io_getVars(&arr, io_arraySize(arr)); + AIT_SET_STR(v, "mauhahahaha ohoho and bottle of rum!"); + io_hashVar(v, "Baba Yaga #1"); + + v = io_findKeyHash(arr, "Baba Yaga #1"); + printf("search for hash='Baba Yaga #1' %s\n", v ? AIT_GET_LIKE(v, char*) : ""); + printf("Before sorting::\n"); for (i = 0; i < io_arraySize(arr); i++) printf("%d) KEY=%d %s\n", i, AIT_KEY(io_array(arr, i, ait_val_t*)),