4 ms·
out of curiosity, what do you (does he) do if printf fails?
by riffraff 12y ago
out of curiosity, what do you (does he) do if printf fails?
- svckr 12y agoFrom qmail/qmail-pw2u.c (linked somewhere above): void die_write() { substdio_putsflush(subfderr,"qmail-pw2u: fatal: unable to write output\n"); _exit(111); } /* ... */ if (substdio_puts(subfdout,uugh) == -1) die_write(); if (substdio_puts(subfdout,dashcolon) == -1) die_write(); if (substdio_put(subfdout,x,i) == -1) die_write(); /* ... */