summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..209c88a
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,23 @@
+#include <stdio.h>
+#include <aplwc.h>
+
+int
+main(void)
+{
+ Aplwc *aplwc;
+
+ int ret = aplwc_new(&aplwc);
+ if(ret){
+ fprintf(stderr, "Couldn't create new aplwc instance: %s\n", aplwc_errstr(aplwc));
+ return 1;
+ }
+
+
+ ret = aplwc_destroy(aplwc);
+ if(ret){
+ fprintf(stderr, "Couldn't destroy the aplwc instance: %s\n", aplwc_errstr(aplwc));
+ return 1;
+ }
+
+ return 0;
+}