Work on new API. Locking system re-implemented
[idzebra-moved-to-github.git] / test / api / t1.c
diff --git a/test/api/t1.c b/test/api/t1.c
new file mode 100644 (file)
index 0000000..c276d4d
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * $Id: t1.c,v 1.1 2002-02-20 17:30:02 adam Exp $
+ */
+
+#include <zebraapi.h>
+
+int main(int argc, char **argv)
+{
+    ZebraService zs;
+    ZebraHandle zh;
+
+    nmem_init();
+    zs = zebra_start("t1.cfg");
+    zh = zebra_open (zs);
+    
+    zebra_close (zh);
+    zebra_stop (zs);
+    nmem_exit ();
+    xmalloc_trav ("x");
+    exit (0);
+}