...
| Code Block |
|---|
size_t count_whitespace(const char *s) {
const char *t = s;
while(isspace((unsigned char)*t))
++t;
return t - s;
}
|
Priority: P3 Level: L3
Component | Value |
|---|---|
Severity | 1 (low) |
Likelihood | 1 (unlikely) |
Remediation cost | 3 (low) |
References
- ISO/IEC 9899-1999 Section 7.4 Character handling <ctype.h>
- Kettlewell 02 Section 1.1 <ctype.h> And Characters Types