O'Reilly logo
  • Ivan Petrov thinks this is interesting:

if (fputc ('p', stream) == EOF) /* error */

From

Cover of Linux System Programming

Note

checking fputc for errors