Search code examples
cstdoutstderr

How to close stdout and stderr in C?


I need to close stdout and stderr for one of my C program. How is it possible without exiting the program in execution?


Solution

  • What have you tried? Doesn't fclose work?