Provided by: allegro4-doc_4.4.2-4_all
fix_filename_slashes - Converts all the directory separators to a standard character. Allegro game programming library.
#include <allegro.h> 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 = "c:/dos\\backup/weirdo\\test"; ... fix_filename_slashes(buf); /* 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.