MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / _CopyVal

Function _CopyVal

ogsr_engine/xrCore/xr_trims.cpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67LPCSTR _CopyVal(LPCSTR src, LPSTR dst, char separator)
68{
69 const char* p = strchr(src, separator);
70 size_t n = p ? (p - src) : strlen(src);
71 strncpy(dst, src, n);
72 dst[n] = 0;
73 return dst;
74}
75
76LPSTR _GetItem(LPCSTR src, int index, LPSTR dst, char separator, LPCSTR def, bool trim)
77{

Callers 1

_GetItemFunction · 0.85

Calls 3

eraseMethod · 0.45
lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected