delorie.com/archives/browse.cgi | search |
> Date: Wed, 26 Feb 2003 01:40:55 +0000 > From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk> > > > > Call isatty on the handle; if it returns zero, the handle is > > redirected. > > But can we assume file descriptors 0, 1, etc. are actually standard handles? Yes. Many programs will break beyond recognition otherwise. As an example, consider our crash traceback: it is written to file handle 2 without any tests.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |