| delorie.com/archives/browse.cgi | search |
| Date: | Sun, 12 Jan 1997 16:04:05 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| To: | Dead_and_Gone <alaric AT oasis DOT novia DOT net> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: catching a CTRL C |
| In-Reply-To: | <Pine.SOL.3.93.970112013936.13509A-100000@oasis.novia.net> |
| Message-ID: | <Pine.SUN.3.91.970112160124.7675f-100000@is> |
| MIME-Version: | 1.0 |
On Sun, 12 Jan 1997, Dead_and_Gone wrote:
> void ctrlbrk(fptr)
> int (*fptr)();
> {
> int _signal_(int, int (*fptr)());
> _signal_(SIGINT,fptr);
> }
That function is called `signal', not `_signal_'. And you should pass
your handler as its argument. Can you post the code that calls
`ctrlbrk', so that it could be seen how do you call it and what function
do you pass as `fptr'?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |