---
name: "Tcl_CommandComplete"
section: "3tcl"
platform: "linux"
package: "tcl8.6-doc"
version: "8.6.16+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Tcl_CommandComplete/3tcl"
---

# Tcl\_CommandComplete(3tcl)

Check for unmatched braces in a Tcl command

```

```

## NAME

Tcl\_CommandComplete - Check for unmatched braces in a Tcl command

## SYNOPSIS

```
#include <tcl.h>

int
Tcl_CommandComplete(cmd)
```

## ARGUMENTS

- const char *\*cmd* (in)

  Command string to test for completeness.

  ```

  ```

## DESCRIPTION

**Tcl\_CommandComplete** takes a Tcl command string as argument and determines whether it contains one or more complete commands (i.e. there are no unclosed quotes, braces, brackets, or variable references). If the command string is complete then it returns 1; otherwise it returns 0.

## KEYWORDS

complete command, partial command
