| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Catching the alarm() |
hi Barrie,
BH> I've endeavored to start working on my 1st programming project
BH> under os/2 and am using emx/gcc. The alarm() function works
BH> great, but HOW DO I CATCH IT??? Can anyone post a bit of code
BH> that will do something when alarm sounds other than terminating
BH> the process??? Am trying to use it for a screensaver for the menu
BH> of my program.
You write a signal handling function and install it with pe. signal(). How
you write a handler depends on what libraries you link to (emx, BSD or
SysV). Read charter 5 of books\emxlib.inf: it's all about signals.
regards,
hugo
* Origin: huug{at}telebyte.nl (2:283/608.5)SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 283/608 2801/201 28/777 2/777 396/1 270/101 712/515 711/808 809 934 |
|
| 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™.