MCPcopy Create free account
hub / github.com/arrayfire/forge / stringcopy

Function stringcopy

src/api/cpp/exception.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23{
24
25void stringcopy(char* dest, const char* src, size_t len)
26{
27#if defined(OS_WIN)
28 strncpy_s(dest, forge::common::MAX_ERR_SIZE, src, len);
29#else
30 strncpy(dest, src, len);
31#endif
32}
33
34Error::Error() : mErrCode(FG_ERR_UNKNOWN)
35{

Callers 1

ErrorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected