| 42 | } |
| 43 | |
| 44 | void trimwhitespace(const uint8_t*& str, size_t& len) |
| 45 | { |
| 46 | while (len > 0 && isspace(*str)) |
| 47 | { |
| 48 | str++; |
| 49 | len--; |
| 50 | } |
| 51 | |
| 52 | const uint8_t* end = str + len - 1; |
| 53 | while (len > 0 && isspace(*end)) |
| 54 | { |
| 55 | end--; |
| 56 | len--; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | static bool init = false; |
| 61 |
no outgoing calls
no test coverage detected