---
name: "put_backslash"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/put_backslash"
---

# put\_backslash(3alleg)

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

## NAME

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

## SYNOPSIS

**#include \<allegro.h\>**

**void put\_backslash(char \*filename);**

## DESCRIPTION

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.

## SEE ALSO

[**get\_extension**(3alleg)](/get_extension/3alleg.md), [**get\_filename**(3alleg)](/get_filename/3alleg.md)
