TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Rowan_Crowe
from: Paul Edwards
date: 1996-10-05 13:58:14
subject: using ctrlbrk()

PE> Well, you got me to look up my standard, but unless your section
PE> 7.7.1.1 is different from mine, the return value from your handler is
PE> irrelevant.  Actually, not so much irrelevant as ILLEGAL.  The signal
PE> handler is meant to be of return type "void".

R> In that case, it's not possible to write a 'legal' DOS ^C handler.

Why?

R> Return: AH = 00h abort program
R> if all registers preserved, restart DOS call

So?  That's the compiler's job.  Why do you think it's not possible to
write a C compiler that will both conform to the ISO standard AND conform
to the DOS specs?  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™.