MCPcopy Create free account
hub / github.com/crownengine/crown / strLen

Function strLen

3rdparty/bx/src/string.cpp:293–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 15

lengthFunction · 0.85
allocStringFunction · 0.85
strInsertFunction · 0.85
strReplaceFunction · 0.85
setDefineMethod · 0.85
runMethod · 0.85
scratchMethod · 0.85
compileShaderFunction · 0.85
compileFunction · 0.85
getGLStringHashFunction · 0.85
dumpExtensionsFunction · 0.85
initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected