J
Jeffrey Hiess
Something like getchar() doesn't work, since it "waits" for input.
#include <stdio.h>
while (1)
{
if (getchar()) /* break if any key is pressed */
{
break;
}
/* lot's of other code goes here */
}
#include <stdio.h>
while (1)
{
if (getchar()) /* break if any key is pressed */
{
break;
}
/* lot's of other code goes here */
}