Various handy utility functions: ------------------------------------------------------------------------------ find all \ in a path and convert them in place to /
| 86 | //------------------------------------------------------------------------------ |
| 87 | // find all \ in a path and convert them in place to / |
| 88 | static 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 |