...
Code Block | ||
---|---|---|
| ||
size_t count_preceding_whitespace(const char *s) {
const char *t = s;
size_t length = strlen(s) + 1;
while (isspace((const unsigned char)*t) && (t - s < length)) {
++t;
}
return t - s;
}
|
...
...
Code Block | ||
---|---|---|
| ||
size_t count_preceding_whitespace(const char *s) {
const char *t = s;
size_t length = strlen(s) + 1;
while (isspace((const unsigned char)*t) && (t - s < length)) {
++t;
}
return t - s;
}
|
...