MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / PathFixBackslashes

Function PathFixBackslashes

src/Helpers.c:1291–1301  ·  view source on GitHub ↗

============================================================================= PathFixBackslashes() - in place conversion

Source from the content-addressed store, hash-verified

1289// PathFixBackslashes() - in place conversion
1290//
1291void PathFixBackslashes ( LPWSTR lpsz )
1292{
1293 WCHAR *c = lpsz;
1294 while ( c = StrChr ( c, L'/' ) ) {
1295 if ( *CharPrev ( lpsz, c ) == L':' && *CharNext ( c ) == L'/' ) {
1296 c += 2;
1297 } else {
1298 *c = L'\\';
1299 }
1300 }
1301}
1302
1303
1304//=============================================================================

Callers 1

ParseCommandLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected