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

Function strlcpy

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

Source from the content-addressed store, hash-verified

83}
84
85size_t strlcpy(char* dst, size_t dstSize, const char* src)
86{
87 size_t i = 0;
88 if(dst && dstSize)
89 {
90 for(; i + 1 < dstSize && src[i]; i++) // copy up to dstSize-1 bytes
91 dst[i] = src[i];
92 dst[i] = 0; // always null-terminate
93 }
94
95 while(src[i]) // read any remaining characters in the src string to get the length
96 i++;
97
98 return i;
99}
100
101size_t strlcat(char* dst, size_t dstSize, const char* src)
102{

Callers 15

setPvdParamsMethod · 0.85
PvdParametersMethod · 0.85
SampleAssetMethod · 0.85
addSearchPathMethod · 0.85
findFileMethod · 0.85
findPathMethod · 0.85
VariableMethod · 0.85
RendererMethod · 0.85
initTexterMethod · 0.85
OGLRendererMethod · 0.85
STDMETHOD(Open)Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected