MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / DupString

Method DupString

src/StringUtils.cpp:123–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123TCHAR* SU::DupString(const TCHAR* string) {
124 if (!string)
125 return NULL;
126
127 int size = lstrlen(string) + 1;
128 TCHAR * newstring = new TCHAR[size];
129 lstrcpy(newstring, string);
130 return newstring;
131}
132
133char * SU::strdup(const char* string) {
134 if (!string)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected