Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#FFcccc
size_t count_whitespace(const char const *s) {
  const char const *t = s;
  while (isspace(*t))  /* possibly *t < 0 */
    ++t;
  return t - s;
}

...

Code Block
bgColor#ccccff
size_t count_whitespace(const char const *s) {
  const char const *t = s;
  while (isspace((unsigned char)*t))
    ++t;
  return t - s;
}

...