...
Code Block |
---|
size_t count_whitespace(const unsigned *s) { const unsigned char *t = s; while(isspace(*t)) ++t; return t - s; } |
Wiki Markup |
---|
This approach is inconvenient when you need to interwork with other functions that haven't been designed with this approach in mind, for example, the string handling functions found in the standard library. \[[Kettlewell 02|AA. C References#Kettlewell 02]\] |
Compliant Solution 2
This compliant solution uses an explicit cast.
...