logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fix_filename_slashes - Converts all the directory separators to a standard character. Allegro game

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. */

Name

       fix_filename_slashes  -  Converts  all  the  directory  separators  to a standard character. Allegro game
       programming library.

Return Value

       Returns a copy of the `path' parameter.

See Also

fix_filename_case(3alleg4), canonicalize_filename(3alleg4)

Allegro                                           version 4.4.3                    fix_filename_slashes(3alleg4)

Synopsis

#include<allegro.h>char*fix_filename_slashes(char*path);

See Also