1fix_filename_slashes(3) Allegro manual fix_filename_slashes(3)
2
3
4
6 fix_filename_slashes - Converts all the directory separators to a stan‐
7 dard character. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 char *fix_filename_slashes(char *path);
14
16 Converts all the directory separators in the filename stored in `path'
17 to a standard character. On DOS and Windows platforms, this is a back‐
18 slash. On most other platforms this is a slash. Example:
19
20 char buf[200] = "c:/dos\\backup/weirdo\\test";
21 ...
22 fix_filename_slashes(buf);
23 /* Under DOS we would have c:\dos\backup\weirdo\test.
24 Under Unix we would have c:/dos/backup/weirdo/test. */
25
27 Returns a copy of the `path' parameter.
28
29
31 fix_filename_case(3), canonicalize_filename(3)
32
33
34
35Allegro version 4.4.2 fix_filename_slashes(3)