|
|
|
|
|
by dwohnitmok
1567 days ago
|
|
This raises an interesting question: is there any IO function that should return unit/void? Or equivalently are there any IO functions for which we can safely ignore the return value/ignore all exceptions? It seems like every single IO thing I can think of can have a relevant error, regardless of whether it's file-system related, network, or anything else. |
|
In GNU programs you can use atexit(close_stdout) to do this automatically.