Query: fix_filename_slashes
OS: debian
Section: 3alleg4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
fix_filename_slashes(3alleg4) Allegro manual fix_filename_slashes(3alleg4)NAMEfix_filename_slashes - Converts all the directory separators to a standard character. Allegro game programming library.SYNOPSIS#include <allegro.h> char *fix_filename_slashes(char *path);DESCRIPTIONConverts 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"; ... fix_filename_slashes(buf); /* Under DOS we would have c:dosackupweirdo est. Under Unix we would have c:/dos/backup/weirdo/test. */RETURN VALUEReturns a copy of the `path' parameter.SEE ALSOfix_filename_case(3alleg4), canonicalize_filename(3alleg4) Allegro version 4.4.2 fix_filename_slashes(3alleg4)