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.
Is there a way of including a timeout with a scanf statement?
No, there isn't. Perhaps you should implement a routine to fill an input buffer with a timeout and use sscanf to parse the string.