m204help@cca.CCA.COM (Keith Hedger) (06/22/87)
Hi out there....well it's time for another question that will probably be ridiculously elementary for most of you. I am writing a program that will basically run a 'do until cntrl c is pushed' kind of loop. My question - How do you test for cntrl c ????? I am using the Megamax C compiler and I found one function called Ccein (or something like that ) that says it will echo keyboard input without displaying it except cntrl q cntrl s and cntrl c which will be trapped and acted upon. Sorry if I'm a little ( or a lot ) slow, but being fairly new to the world of C, this is pretty cryptic to me. Is this the correct way to test for cntrl c ? If so, how do I use this function (examples please). If not, what's a pretty standard way of doing this ?????? Your responses will be greatly appreciated, keith hedger