TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Udo Van Den Heuvel
from: Tom Almy
date: 1996-07-05 00:26:28
subject: ctrl-c?

-=> Quoting Udo Van Den Heuvel to All <=-

 UVDH> How do I catch a CTRL-C so it doesn't cancel my program?

In C you use "signal(SIGINT, SIG_IGN)" to ignore Control-C. You
can also have
a function that executes if you want to give it special handling.

Tom


--- Blue Wave/DOS v2.30
* Origin: Melted Butter, Tualatin, Oregon (1:105/290)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 517 628 713/888 800/1
@PATH: 105/290 330 270/101 712/515 711/808 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™.