Mail Archives: djgpp/1996/05/07/16:41:10
After reading an ANSI C programming book, it appears that SIGINT is
ANSI C (correct me if I'm wrong, I don't have the specs). This is
confirmed by looking at signal.h on a few other platform (HP-UX for
example). However, the signal.h from the djgpp v2.0 gcc port does not
define SIGINT if the -ansi command line option is given to gcc.
My first question is, should SIGINT be defined for ANSI or not?
Next, if SIGINT should not be defined, what's the best way to trap
this signal. When a user presses Control-C, the SIGINT signal is
generated, I need to be able to catch this signal and run a signal
handler routine before exiting.
Thanks for any and all help...
--
Barry A. Giffel
Software Engineer, Avant! Corp.
Work Phone: (919) 941-6645, Fax: (919) 941-6700
Email: Barry_Giffel AT avanticorp DOT com
- Raw text -