[dwm] -offtopic duplicate stdout to logfile in C?

From: <Deleuze_AT_gmx.net>
Date: Fri, 22 Jun 2007 18:23:55 +0200

Hackerz,

I have one stream, that writes to stdout. Now I want to log it, works fine
with a different pointer, but what's the best way to duplicate the existing stream that already is printed to stdout to a logfile? Of course, 2 fprintfs is no pr0n at all :)

greetz
pr0n@

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
Received on Fri Jun 22 2007 - 18:24:26 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:44:54 UTC