projects
/
libmalice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
98e1752
)
Clearer printing example.
author
norly
<ny-git@enpas.org>
Sun, 13 Jan 2013 18:33:38 +0000
(18:33 +0000)
committer
norly
<ny-git@enpas.org>
Sun, 13 Jan 2013 18:33:38 +0000
(18:33 +0000)
demo-printing.c
patch
|
blob
|
history
diff --git
a/demo-printing.c
b/demo-printing.c
index 1399e588569d6643dfe4f932004284c827ca33ba..e57f3d5f9ebd421a426bffa3bf8a5787e0fd77bc 100644
(file)
--- a/
demo-printing.c
+++ b/
demo-printing.c
@@
-2,11
+2,16
@@
int lmMain(void)
{
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);
lmPrintInt32s(-559038737);
+ lmPrintString(" is negative");
lmPrintChar('.');
lmPrintChar('.');
+ lmPrintChar(' ');
+ lmPrintInt32s(3);
+ lmPrintString(" is positive.");
lmPrintChar('\n');
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;
+}