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

Function GetFilePath

Libraries/unrar/pathfn.cpp:194–201  ·  view source on GitHub ↗

Returns file path including the trailing path separator symbol.

Source from the content-addressed store, hash-verified

192
193// Returns file path including the trailing path separator symbol.
194void GetFilePath(const wchar *FullName,wchar *Path,size_t MaxLength)
195{
196 if (MaxLength==0)
197 return;
198 size_t PathLength=Min(MaxLength-1,size_t(PointToName(FullName)-FullName));
199 wcsncpy(Path,FullName,PathLength);
200 Path[PathLength]=0;
201}
202
203
204// Removes name and returns file path without the trailing

Callers 3

CmpNameFunction · 0.85
GetFreeDiskFunction · 0.85
GenArcNameFunction · 0.85

Calls 1

PointToNameFunction · 0.85

Tested by

no test coverage detected