Mail Archives: djgpp/1992/09/21/09:42:09
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 -