#define ENDFILE "CTRL-Z"
You have them enter this text? Or are you meaning a single keystroke? (If you mean a keystroke, I'd guess you're not doing this right.)what i need, i want the user 2 enter CTRL-X to end the program
#define ........ "CTRL-X" ( what could i write here)
so the program end whenever the user press CTRL-XIf you are trying to intercept keystrokes, you may be interested in signals .
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314