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

Method QuoteLocalPath

src/PathUtils.cpp:178–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178int PU::QuoteLocalPath(const TCHAR * path, TCHAR * buffer, int buffersize) {
179 int len = lstrlen(path);
180 if (buffersize < len+3)
181 return -1;
182
183 lstrcpy(buffer, TEXT("\""));
184 lstrcat(buffer, path);
185 lstrcat(buffer, TEXT("\""));
186 return 0;
187}
188
189int PU::QuoteExternalPath(const char * path, char * buffer, int buffersize) {
190 int len = strlen(path);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected