Return value of `printf`.
I noticed that the return value of printf
and fclose
is not checked, but those functions can fail (e.g. if the disk became full or in case quota were reached). For maximal robustness, I recommend checking them.
p.s. This software has been packaged in Guix recently: https://issues.guix.gnu.org/57291.