Is there a way to get a C stream object (a FILE*
object) that points at nothing?
I know fopen("/dev/null","w");
would work but I'm wondering if there is a better way.
Preferably that bit buckets the data at a higher level than the posix layer and that is also more portable.