Hacker News new | ask | show | jobs
by dch82 595 days ago
I replaced that code with

  // loop until an EOF is read
  while ((ch = getchar()), ch != EOF) {
Would this be better?