MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / strlcat

Function strlcat

deps/physx/physx/source/foundation/src/PsString.cpp:101–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101size_t strlcat(char* dst, size_t dstSize, const char* src)
102{
103 size_t i = 0, s = 0;
104 if(dst && dstSize)
105 {
106 s = strlen(dst);
107 for(; i + s + 1 < dstSize && src[i]; i++) // copy until total is at most dstSize-1
108 dst[i + s] = src[i];
109 dst[i + s] = 0; // always null-terminate
110 }
111
112 while(src[i]) // read any remaining characters in the src string to get the length
113 i++;
114
115 return i + s;
116}
117
118void strlwr(char* str)
119{

Callers 13

getUnusedArgsMethod · 0.85
addSearchPathMethod · 0.85
findFileMethod · 0.85
findPathMethod · 0.85
initTexterMethod · 0.85
OGLRendererMaterialMethod · 0.85
STDMETHOD(Open)Method · 0.85
loadCacheShaderMethod · 0.85
OpenMethod · 0.85
compileProgramMethod · 0.85
compileProgramMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected