]> diplodocus.org Git - nmh/commit
uip/scansbr.c: Add PUTC() macro, similar to FPUTS().
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 29 May 2017 11:23:38 +0000 (12:23 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 29 May 2017 11:23:38 +0000 (12:23 +0100)
commit3395ff90fe5c311285e15357d06fb08938b9b849
treea7c1d57828ecfb3b60358b1ef85496252e2115e9
parent1564f19badd71bedb37fad0913a816a8873b7669
uip/scansbr.c: Add PUTC() macro, similar to FPUTS().

FPUTS() exists, but all the putc(3) checks for error were written
alongside in longhand.  May as well have a PUTC() to match, though
perhaps just the existing check of the FILE's sticky error state with
ferror(3) is sufficient and neither macro is required.
uip/scansbr.c