On Thu, 22 Jan 2004, Jason Holt wrote:
> I've occasionally been able to point stdout somewhere else. Perhaps something
> like this would work:
>
> FILE *oldstdout = stdout;
> fflush(stdout);
> fopen(stdout, "foo_output", "w");
> foo();
> fclose(stdout);
> stdout = oldstdout;
Erm, okay, so I figured I might as well try it, having already written it.
And it works fine once you s/fopen\(stdout/stdout = fopen\(/.
-J
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list