Getchar.c
From Free Knowledge Base- The DUCK Project: information for everyone
#include <stdio.h>
#define EOL 10
#define ESC 27
main() {
char c = 'X';
while (c != ESC) {
int cnt;
cnt++;
printf("iteration of test %d", cnt);
c = getchar();
}
return 0;
}