MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / CopyPath

Function CopyPath

src/External/CascLib/test/CascTest.cpp:187–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187static LPTSTR CopyPath(LPTSTR szBuffer, LPTSTR szBufferEnd, LPCSTR szSource)
188{
189 while(szBuffer < szBufferEnd && szSource[0] != 0)
190 {
191 if(szSource[0] == '\\' || szSource[0] == '/')
192 *szBuffer++ = PATH_SEP_CHAR;
193 else
194 *szBuffer++ = szSource[0];
195
196 szSource++;
197 }
198
199 szBuffer[0] = 0;
200 return szBuffer;
201}
202
203static LPTSTR MakeFullPath(LPTSTR szBuffer, size_t ccBuffer, LPCSTR szStorage)
204{

Callers 1

MakeFullPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected