projects
/
libmalice.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add example for program exit code.
[libmalice.git]
/
demo-input-char.c
1
#include "libmalice.h"
2
3
int lmMain(void)
4
{
5
char c;
6
7
lmPrintString("This demo tests keyboard input for single characters.\n");
8
9
lmPrintString("Enter a letter and press return: ");
10
c = lmReadChar();
11
lmPrintString("You entered the letter ");
12
lmPrintChar(c);
13
lmPrintChar('.');
14
lmPrintChar('\n');
15
16
return 0;
17
}