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

Function DosSlashToUnix

Libraries/unrar/pathfn.cpp:495–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493
494
495void DosSlashToUnix(const char *SrcName,char *DestName,size_t MaxLength)
496{
497 size_t Copied=0;
498 for (;Copied<MaxLength-1 && SrcName[Copied]!=0;Copied++)
499 DestName[Copied]=SrcName[Copied]=='\\' ? '/':SrcName[Copied];
500 DestName[Copied]=0;
501}
502
503
504void UnixSlashToDos(const wchar *SrcName,wchar *DestName,size_t MaxLength)

Callers 2

SlashToNativeFunction · 0.85
ExtractUnixLink50Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected