MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / NewCopy

Function NewCopy

extra/yassl/src/yassl.cpp:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115
116void NewCopy(char*& dst, const char* src)
117{
118 size_t len = strlen(src) + 1;
119 dst = new char[len];
120
121 strncpy(dst, src, len);
122}
123
124
125// Client Implementation

Callers 3

SetCAMethod · 0.85
SetCertMethod · 0.85
SetKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected