fix_filename_slashes(3alleg)

fix_filename_slashes3alleg

Converts all the directory separators to a standard character. allegro game programming library.

Usage

#include <allegro.h>

char *fix_filename_slashes(char *path);

Overview

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.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.