char temp; //... char timed_getc(){ //... } void main(void){ //... while(1){ //... temp=timed_getc(); //... } }