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

Function AddEndSlash

Libraries/unrar/pathfn.cpp:170–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169
170void AddEndSlash(wchar *Path,size_t MaxLength)
171{
172 size_t Length=wcslen(Path);
173 if (Length>0 && Path[Length-1]!=CPATHDIVIDER && Length+1<MaxLength)
174 {
175 Path[Length]=CPATHDIVIDER;
176 Path[Length+1]=0;
177 }
178}
179
180
181void MakeName(const wchar *Path,const wchar *Name,wchar *Pathname,size_t MaxSize)

Callers 13

ParseArgMethod · 0.85
ProcessSwitchMethod · 0.85
ProcessFileFunction · 0.85
GetFilteredMaskMethod · 0.85
GetNextMaskMethod · 0.85
FindProcMethod · 0.85
MakeNameFunction · 0.85
GetAppDataPathFunction · 0.85
GetConfigNameFunction · 0.85
ConvertNameToFullFunction · 0.85
GenArcNameFunction · 0.85
GetWinLongPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected