is there any equivalent fn. of getch() or getche() in c??

i want to input char and an integer separated by only a space witout enter like scanf("%c %d",&ch,&i);
but the program is not taking character input…please suggest me something…

Is this duplicity to best way input a char - general - CodeChef Discuss ?