Converts all the directory separators to a standard character.


char *fix_filename_slashes(char *path);
Converts all the directory separators in the filename stored in `path' to a standard character. On DOS and Windows platforms, this is a backslash. On most other platforms this is a slash. Example:
      char buf[200] = "c:/dos\\backup/weirdo\\test";
      /* Under DOS we would have c:\dos\backup\weirdo\test.
	 Under Unix we would have c:/dos/backup/weirdo/test. */
Returns a copy of the `path' parameter.

Related Discussions

The following threads each have code containing this keyword: Note: You can click on the numbers to jump directly to the posts that reference this page.

Related Projects

The following projects include source code containing this keyword: