MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / MakeName

Function MakeName

Libraries/unrar/pathfn.cpp:181–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180
181void MakeName(const wchar *Path,const wchar *Name,wchar *Pathname,size_t MaxSize)
182{
183 // 'Path', 'Name' and 'Pathname' can point to same memory area. So we use
184 // the temporary buffer instead of constructing the name in 'Pathname'.
185 wchar OutName[NM];
186 wcsncpyz(OutName,Path,ASIZE(OutName));
187 AddEndSlash(OutName,ASIZE(OutName));
188 wcsncatz(OutName,Name,ASIZE(OutName));
189 wcsncpyz(Pathname,OutName,MaxSize);
190}
191
192
193// Returns file path including the trailing path separator symbol.

Callers 1

LoadSysLibraryFunction · 0.85

Calls 3

wcsncpyzFunction · 0.85
AddEndSlashFunction · 0.85
wcsncatzFunction · 0.85

Tested by

no test coverage detected