TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Phil Crown
from: Paul Edwards
date: 1995-11-11 21:43:22
subject: BCOS2 signal()

PE> 2. The example program in the Borland book on how to use signal()
PE> doesn't compile, and obviously when you're trying to use it in
PE> real life (e.g. trying to recompile zip/unzip I think it was), it
PE> fails.

PC> The below example from BCOS2 v2.0, as you posted, it does not compile, but 
PC> I made two changes below and it compiles... and.. works! :-)

The bug was fixed in BCOS2 1.5.  Are you sure the example on
signal doesn't compile?

PC>   //signal(SIGFPE, (void (cdecl *) (int)) catcher); // won't compile
PC>   signal(SIGINT, catcher);                          // will compile, SIGINT

BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.