MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / ForwardSlash

Function ForwardSlash

Engine/source/platformPOSIX/POSIXFileio.cpp:182–190  ·  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

180//------------------------------------------------------------------------------
181// find all \ in a path and convert them in place to /
182static void ForwardSlash(char *str)
183{
184 while(*str)
185 {
186 if(*str == '\\')
187 *str = '/';
188 str++;
189 }
190}
191
192//------------------------------------------------------------------------------
193// copy a file from src to dest

Callers 2

MungePathFunction · 0.85
setCurrentDirectoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected