MCPcopy Create free account
hub / github.com/bwapi/bwapi / StrCopy

Function StrCopy

bwapi/Util/Source/Util/Convenience.h:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21template <size_t N>
22inline void StrCopy(char(&dst)[N], const char *src)
23{
24 strncpy(dst, src, N - 1);
25 StrTerminate(dst);
26};
27
28template <size_t N>
29inline void StrCopy(char(&dst)[N], const std::string &src)

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.80
StrTerminateFunction · 0.70

Tested by

no test coverage detected