In my program I call a function that sometimes write to stdout
some "notices" or "warnings".
Since I don't need that output and furthermore it mixes with the output my program produces I want to get rid of the "notices" from the verbose function.
The function is not part of my code. Instead it's part of a OS' dynamic library (I can't edit the function).
Is there there any way to suppress output from that function?
Or can I suppress output before the function call and restore it after the call?