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

Function IntToExt

Libraries/unrar/strfn.cpp:15–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15void IntToExt(const char *Src,char *Dest,size_t DestSize)
16{
17#ifdef _WIN_ALL
18 // OemToCharBuff does not stop at 0, so let's check source length.
19 size_t SrcLength=strlen(Src)+1;
20 if (DestSize>SrcLength)
21 DestSize=SrcLength;
22 OemToCharBuffA(Src,Dest,(DWORD)DestSize);
23 Dest[DestSize-1]=0;
24#else
25 if (Dest!=Src)
26 strncpyz(Dest,Src,DestSize);
27#endif
28}
29
30
31// Convert archived names and comments to Unicode.

Callers 2

ArcCharToWideFunction · 0.85
ReadHeader14Method · 0.85

Calls 1

strncpyzFunction · 0.85

Tested by

no test coverage detected