LICENSE: BSD 3-Clause "New" or "Revised" License
[libmalice.git] / demo-input-int.c
1 #include "libmalice.h"
2
3 int lmMain(void)
4 {
5   int i;
6
7   lmPrintString("This demo tests keyboard input for integers.\n");
8
9   lmPrintString("Enter a number and press return: ");
10   i = lmReadInt32s();
11   lmPrintString("You entered the number ");
12   lmPrintInt32s(i);
13   lmPrintChar('.');
14   lmPrintChar('\n');
15
16   return 0;
17 }