1fix_filename_slashes(3)         Allegro manual         fix_filename_slashes(3)
2
3
4

NAME

6       fix_filename_slashes - Converts all the directory separators to a stan‐
7       dard character. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       char *fix_filename_slashes(char *path);
14

DESCRIPTION

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

RETURN VALUE

27       Returns a copy of the `path' parameter.
28
29

SEE ALSO

31       fix_filename_case(3), canonicalize_filename(3)
32
33
34
35Allegro                          version 4.2.2         fix_filename_slashes(3)
Impressum