DOKK / manpages / debian 10 / allegro4-doc / put_backslash.3alleg4.en
put_backslash(3alleg4) Allegro manual put_backslash(3alleg4)

put_backslash - Puts a path separator at the end of a path if needed. Allegro game programming library.

#include <allegro.h>

void put_backslash(char *filename);

If the last character of the filename is not a `\', `/', `#' or a device separator (ie. `:' under DOS), this routine will concatenate either a `\' or `/' on to it (depending on the platform). Note: ignore the function name, it's out of date.

get_extension(3alleg4), get_filename(3alleg4)

version 4.4.2 Allegro