MCPcopy Create free account
hub / github.com/alecazam/kram / String_Copy

Function String_Copy

hlslparser/src/Engine.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13// Engine/String.cpp
14
15void String_Copy(char* str, const char* b, uint32_t size)
16{
17#ifdef WIN32
18 strncpy(str, b, size);
19 str[size - 1] = 0;
20#else
21 strlcpy(str, b, size);
22#endif
23}
24
25// This version doesn't truncate and is simpler
26int String_PrintfArgList(std::string& buffer, const char* format, va_list args)

Callers 2

String_PrintfArgListFunction · 0.85
GetTokenNameMethod · 0.85

Calls 1

strlcpyFunction · 0.85

Tested by

no test coverage detected