title: Add a Timeout for getchar()
body: <p>I need to add a timeout function for getchar() in my program. </p>
  
  <p>What do I do so that when my program reaches the instruction getchar(), it will only wait for a certain amount of time for the user to make a keystroke and if the user does not make a keystroke within the given time limit, the program will "skip" the getchar()?</p>
  
  <p>The operating system does not support the conio.h library so kbhit is not an option.</p>