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

Function SetExt

Libraries/unrar/pathfn.cpp:74–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73
74void SetExt(wchar *Name,const wchar *NewExt,size_t MaxSize)
75{
76 if (Name==NULL || *Name==0)
77 return;
78 wchar *Dot=GetExt(Name);
79 if (Dot!=NULL)
80 *Dot=0;
81 if (NewExt!=NULL)
82 {
83 wcsncatz(Name,L".",MaxSize);
84 wcsncatz(Name,NewExt,MaxSize);
85 }
86}
87
88
89#ifndef SFX_MODULE

Callers 3

SetSFXExtFunction · 0.85
VolNameToFirstNameFunction · 0.85
ExtrPrepareNameMethod · 0.85

Calls 2

GetExtFunction · 0.85
wcsncatzFunction · 0.85

Tested by

no test coverage detected