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

Method QuoteExternalPath

src/PathUtils.cpp:189–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189int PU::QuoteExternalPath(const char * path, char * buffer, int buffersize) {
190 int len = strlen(path);
191 if (buffersize < len+3)
192 return -1;
193
194 strcpy(buffer, "\"");
195 strcat(buffer, path);
196 strcat(buffer, "\"");
197 return 0;
198}
199
200int PU::CreateLocalDir(const TCHAR * local) {
201

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected