MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / ForwardSlash

Function ForwardSlash

engine/source/platformEmscripten/EmscriptenFileio.cpp:88–96  ·  view source on GitHub ↗

Various handy utility functions: ------------------------------------------------------------------------------ find all \ in a path and convert them in place to /

Source from the content-addressed store, hash-verified

86//------------------------------------------------------------------------------
87// find all \ in a path and convert them in place to /
88static void ForwardSlash(char *str)
89{
90 while(*str)
91 {
92 if(*str == '\\')
93 *str = '/';
94 str++;
95 }
96}
97
98//------------------------------------------------------------------------------
99// copy a file from src to dest

Callers 1

MungePathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected