MCPcopy Create free account
hub / github.com/ararog/Unrar4iOS / GetFilePath

Function GetFilePath

Unrar4iOS/unrar/pathfn.cpp:298–303  ·  view source on GitHub ↗

Returns file path including the trailing path separator symbol.

Source from the content-addressed store, hash-verified

296
297// Returns file path including the trailing path separator symbol.
298void GetFilePath(const char *FullName,char *Path,int MaxLength)
299{
300 size_t PathLength=Min(MaxLength-1,PointToName(FullName)-FullName);
301 strncpy(Path,FullName,PathLength);
302 Path[PathLength]=0;
303}
304
305
306// Returns file path including the trailing path separator symbol.

Callers 4

CmpNameFunction · 0.85
GetFreeDiskFunction · 0.85
IsFullPathFunction · 0.85
GenArcNameFunction · 0.85

Calls 1

PointToNameFunction · 0.85

Tested by

no test coverage detected