www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/28/12:59:48

Date: Fri, 28 Feb 1997 18:43:40 +0100
From: chojnacki <s709 AT ernie DOT icslab DOT agh DOT edu DOT pl>
Message-Id: <199702281743.SAA06012@ernie.icslab.agh.edu.pl>
To: djgpp AT delorie DOT com
Subject: Re: strange thing with exit(0)

Eli Zaretskii wrote:

> The line marked ``missing'' should make the program work.  The DJGPP FAQ
> list explains this in section 18.3.

> void  flushKeyboard()
> {
> _go32_dpmi_registers r;
>   r.h.ah=0x0c;
>   r.h.al=0;
>   r.x.ss = r.x.sp = r.x.flags = 0;   <<<<<<<<<<<<<<<<<< missing line
>   _go32_dpmi_simulate_int(0x21,&r);
> }

Thank you for missing line:
Above code now works perfectly.

----------------------
Tom Chojnacki
s709 AT icslab DOT agh DOT edu DOT pl
----------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019