summaryrefslogtreecommitdiff
path: root/demo-input-char.c
blob: 4bd2af90983112b507ef8f60b50c5bcecec8ec57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "libmalice.h"

int lmMain(void)
{
  char c;

  lmPrintString("This demo tests keyboard input for single characters.\n");

  lmPrintString("Enter a letter and press return: ");
  c = lmReadChar();
  lmPrintString("You entered the letter ");
  lmPrintChar(c);
  lmPrintChar('.');
  lmPrintChar('\n');

  return 0;
}