I am trying to read 1 character and 2 integers without success.
C code:
char action; int cr,cc;
printf("Enter 'c <row> <column>' to click on a block.\n");
scanf("%c %d %d",&action,&cr,&cc);
printf("You typed: %c %d %d\n",action,cr,cc);
Terminal output: ( EXAMPLE )
Enter 'c <row> <column>' to click on a block.
c 3 3
You typed:
0 0
I compiled it with gcc (Ubuntu 5.3.1-14ubuntu2.1) 5.3.1 20160413 in Ubuntu 16.04 LTS.