---
name: "Tcl_Backslash"
section: "3"
platform: "linux"
package: "tcl"
version: "8.6.16-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Tcl_Backslash"
---

# Tcl\_Backslash(3)

parse a backslash sequence

```

```

## NAME

Tcl\_Backslash - parse a backslash sequence

## SYNOPSIS

```
#include <tcl.h>

char
Tcl_Backslash(src, countPtr)
```

## ARGUMENTS

- const char *\*src* (in)

  Pointer to a string starting with a backslash.

- int *\*countPtr* (out)

  If *countPtr* is not NULL, *\*countPtr* gets filled in with number of characters in the backslash sequence, including the backslash character.

  ```

  ```

## DESCRIPTION

The use of **Tcl\_Backslash** is deprecated in favor of **Tcl\_UtfBackslash**.

This is a utility procedure provided for backwards compatibility with non-internationalized Tcl extensions.  It parses a backslash sequence and returns the low byte of the Unicode character corresponding to the sequence. **Tcl\_Backslash** modifies *\*countPtr* to contain the number of characters in the backslash sequence.

See the Tcl manual entry for information on the valid backslash sequences. All of the sequences described in the Tcl manual entry are supported by **Tcl\_Backslash**.

## SEE ALSO

[Tcl(n)](/Tcl/n.md), [Tcl\_UtfBackslash(3)](/Tcl_UtfBackslash/3.md)

## KEYWORDS

backslash, parse
