Thu, 01 Dec 2011 17:06:27 +0100
Merge with 3963e8800a1268be93d938c709e2d4be4d0b2d39
/* * stream.c * * Created on: 20.09.2011 * Author: Mike */ #include "stream.h" void close_stdout() { #ifdef _WIN32 _STREAM_STDOUT = dup(STDOUT_FILENO); #endif freopen("/dev/null", "w", stdout); } void reopen_stdout() { #ifdef _WIN32 close(STDOUT_FILENO); fdopen(dup(_STREAM_STDOUT), "wa"); close(_STREAM_STDOUT); #else freopen("/dev/stdout", "w", stdout); #endif }