Re: How To Redirect STDERR to /dev/null programmatically



Harsha Kodnad wrote:
Hi,
Anybody please tell me how to direct my application's STDERR to /dev/null programmatically. in a C program.

freopen("/dev/null", "w", STDERR);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]