Redirect stdout and stderr.
Wouter Verhelst
wouter at grep.be
Tue Jul 3 11:51:41 PDT 2012
"Tobias Pankrath" <tobias at pankrath.net> writes:
> Is it possible to redirect stdout in a way that all following calls to
> writeln etc just write to /dev/null or something similar?
If it's any form of unix, all you need to do is close(1). If you still
need the fd afterwards, you want to use dup() first so you can restore
them (with dup2()) later.
--
The volume of a pizza of thickness a and radius z can be described by
the following formula:
pi zz a
More information about the Digitalmars-d-learn
mailing list