summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2013-01-13 18:33:38 +0000
committernorly <ny-git@enpas.org>2013-01-13 18:33:38 +0000
commita521b5a5eec1e79faa3545a2d9ec565d12ba0004 (patch)
tree25c8f42985c14f34567dd703566edcc442bcece2
parent98e17528eb9be8e9ec1288c5ff6ba6550ddb4a67 (diff)
Clearer printing example.
-rw-r--r--demo-printing.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/demo-printing.c b/demo-printing.c
index 1399e58..e57f3d5 100644
--- a/demo-printing.c
+++ b/demo-printing.c
@@ -2,11 +2,16 @@
int lmMain(void)
{
- lmPrintString("Goodbye cruel world, I had too much ");
+ lmPrintString("This demo intersperses strings, integers and single characters:\n");
+
+ lmPrintString("The integer ");
lmPrintInt32s(-559038737);
+ lmPrintString(" is negative");
lmPrintChar('.');
+ lmPrintChar(' ');
+ lmPrintInt32s(3);
+ lmPrintString(" is positive.");
lmPrintChar('\n');
- lmPrintString("Oh my, I'm still here... ok, I'll exit now.\n");
- return 42;
-} \ No newline at end of file
+ return 0;
+}