Hi.  I was just wondering if there was a function that allows one to
execute a loop while waiting for input from the keyboard.

The only way I'm used to it is executing the loop with a scanf for example
inside the loop.  But this will pause the loop waiting for input.

Hopefully you understand what I'm saying.

Thanks,
Mike

Example

while(1)
        printf ("\a");


Now while this is looping I want to stop it by exiting with the stroke of
a single key anytime during this loop.  How would this be done.

Reply via email to