Is there a way of including a timeout with a scanf statement? I am using the _getkey, getchar and putchar functions to access the serial port.