...
Code Block | ||
---|---|---|
| ||
size_t count_whitespace(char const char *s, size_t length) { char const char *t = s; while (isspace(*t) && (t - s < length)) /* possibly *t < 0 */ ++t; return t - s; } |
...
Code Block | ||
---|---|---|
| ||
size_t count_whitespace(char const char *s, size_t length) { char const char *t = s; while (isspace((unsigned char)*t) && (t - s < length)) ++t; return t - s; } |
...