...
Code Block | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
size_t count_whitespace(const char const *s) { const char const *t = s; while (isspace((unsigned char)*t)) ++t; return t - s; } |
...