From def21c086d7205e8b07ca102abc20e3755748296 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Mon, 27 May 2013 10:19:59 +0200 Subject: start --- jast_test.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 jast_test.c (limited to 'jast_test.c') diff --git a/jast_test.c b/jast_test.c new file mode 100644 index 0000000..377928f --- /dev/null +++ b/jast_test.c @@ -0,0 +1,31 @@ +#include +#include "jast.h" + +int main(void) +{ + struct jast *maintab, *othertab; + maintab = jast_creat("Paco"); + othertab = jast_creat("Florencio"); + + printf("Adding entries...\n"); + jast_new_entry(maintab, "e1"); + jast_new_entry(maintab, "e2"); + jast_new_entry(maintab, "e3"); + jast_new_entry(maintab, "e4"); + jast_new_entry(maintab, "e5"); + jast_new_entry(maintab, "e6"); + jast_new_entry(maintab, "e7"); + jast_new_entry(maintab, "e8"); + jast_new_entry(maintab, "e9"); + jast_new_entry(maintab, "e10"); + jast_new_entry(maintab, "e11"); + jast_new_entry(othertab, "e1"); + jast_new_entry(othertab, "e2"); + + printf("Showing..."); + jast_show_all(); + jast_dump(maintab, "mt.txt"); + jast_dump(othertab, "ot.txt"); + jast_destroy_all(); + return 0; +} -- cgit v1.2.3