| 291 | } |
| 292 | |
| 293 | int32_t strLen(const char* _str, int32_t _max) |
| 294 | { |
| 295 | if (NULL == _str) |
| 296 | { |
| 297 | return 0; |
| 298 | } |
| 299 | |
| 300 | const char* ptr = _str; |
| 301 | for (; 0 < _max && *ptr != '\0'; ++ptr, --_max) {}; |
| 302 | return int32_t(ptr - _str); |
| 303 | } |
| 304 | |
| 305 | inline int32_t strCopy(char* _dst, int32_t _dstSize, const char* _src, int32_t _num) |
| 306 | { |
no outgoing calls
no test coverage detected