So lesen Sie die Tastatureingabe in C.

#include <stdio.h>

int main(int argc, char *argv[])  
{
    printf("Enter some keys\n");
    char c;
    while((c = getchar()) != 13)   /* 13 is carriage ret in ascii, enter key */     
        printf("%c\n", c); 

    return 0;
}
Exuberant Echidna