LICENSE: BSD 3-Clause "New" or "Revised" License
[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 }