delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/09/21/09:42:09

Date: Mon, 21 Sep 92 08:15:45 CDT
From: "George Jetson" <pynq AT midway DOT uchicago DOT edu>
To: dj AT athena DOT ctron DOT com
Subject: Re: Something about DEBUG32...
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

DJ responds to my query about my program running differently under
DEBUG32 than it does under GO32:

>What is FILES set to in config.sys?  debug32 may open more files than
>go32.

>DJ
>dj AT ctron DOT com
>Life is a banana.

Sorry about this one - it was another thinko.

It turns out that under DEBUG32, fileno(stdin) != 0
It is the first environment I have ever encountered where that is the case.

Anyway, changing it to "if (isatty(fileno(stdin))) ..." fixes it.

- Raw text -


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