fix_filename_slashes (3) - Linux Manuals
fix_filename_slashes: Converts all the directory separators to a standard character. Allegro game programming library.
Command to display fix_filename_slashes
manual in Linux: $ man 3 fix_filename_slashes
NAME
fix_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);
DESCRIPTION
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";
...
fix_filename_slashes(buf);
/* Under DOS we would have c:\dos\backup\weirdo\test.
Under Unix we would have c:/dos/backup/weirdo/test. */
RETURN VALUE
Returns a copy of the `path' parameter.
Pages related to fix_filename_slashes
- fix_filename_case (3) - Converts a filename to a standardised case. Allegro game programming library.
- fixacos (3) - Fixed point inverse cosine lookup table. Allegro game programming library.
- fixadd (3) - Safe function to add fixed point numbers clamping overflow. Allegro game programming library.
- fixasin (3) - Fixed point inverse sine lookup table. Allegro game programming library.
- fixatan (3) - Fixed point inverse tangent lookup table. Allegro game programming library.
- fixatan2 (3) - Fixed point version of the libc atan2() routine. Allegro game programming library.
- fixceil (3) - Returns the smallest integer not less than x. Allegro game programming library.