Added C header and printing demo.
[libmalice.git] / demo-printing.c
diff --git a/demo-printing.c b/demo-printing.c
new file mode 100644 (file)
index 0000000..1399e58
--- /dev/null
@@ -0,0 +1,12 @@
+#include "libmalice.h"
+
+int lmMain(void)
+{
+  lmPrintString("Goodbye cruel world, I had too much ");
+  lmPrintInt32s(-559038737);
+  lmPrintChar('.');
+  lmPrintChar('\n');
+  lmPrintString("Oh my, I'm still here... ok, I'll exit now.\n");
+
+  return 42;
+}
\ No newline at end of file