prog.c:3:1: error: expected identifier or '(' before 'while'
while (!kbhit()){
^
prog.c:17:4: warning: data definition has no type or storage class
fflush(stdin);
^
prog.c:17:4: warning: type defaults to 'int' in declaration of 'fflush' [-Wimplicit-int]
prog.c:17:4: warning: parameter names (without types) in function declaration
prog.c:18:4: error: expected identifier or '(' before 'while'
while (((ch=getch())!='\r') && (i < KEY_IN_BUFLEN - 1)) //press Enter to stop while loop
^