Date: Thu, 10 Apr 1997 18:18:54 -0400 Message-Id: <199704102218.SAA16211@delorie.com> From: DJ Delorie To: demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De CC: djgpp AT delorie DOT com In-reply-to: <334CD187.1CFB@LSTM.Ruhr-UNI-Bochum.De> (message from Thomas Demmer on Thu, 10 Apr 1997 12:39:51 +0100) Subject: Re: Can I catch stderr output in my own code? > Two solutions come to my mind, one is to write code using the > File System Extensions in DJGPP, close stderr and reopen it > with a filename like "/dev/stderr_80x40" and your FSE catches > it. Use __FSEXT_alloc_fd(), which opens "NUL" and attaches your extension to it - all in one step.