What is a C equivalent to this C++ answer for temporarily silencing output to cout/cerr and then restoring it?
How to silence and restore stderr/stdout
?
(Need this to silence noise from 3rd party library that I am calling, and to restore after the call.)