diff options
Diffstat (limited to 'demo-exitclean.c')
-rw-r--r-- | demo-exitclean.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/demo-exitclean.c b/demo-exitclean.c new file mode 100644 index 0000000..a87c0f9 --- /dev/null +++ b/demo-exitclean.c @@ -0,0 +1,12 @@ +#include "libmalice.h" + +int lmMain(void) +{ + lmPrintString("This demo exits mid-program via lmExit() with code 23.\n"); + + lmExit(23); + + lmPrintString("This line is never printed.\n"); + + return 42; +} |