Tcl_CommandComplete(3tcl)

Tcl_CommandComplete3tcl

Check for unmatched braces in a tcl command

Usage

#include <tcl.h>

int
Tcl_CommandComplete(cmd)

    


    

Arguments

const char *cmd (in)

Command string to test for completeness.


    


            

Overview

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

Releases

18 releases since Debian 1.1 (Buzz); the text changed 8 times.

  1. 1.1–2.1
  2. 2.2
  3. 3.0
  4. 3.1–4.0
  5. 5.0
  6. 6.0
  7. 7
  8. 8–10
  9. 11–13

From tcl8.6-doc 8.6.16+dfsg-1 in Debian 13 (Trixie). Also shipped by tcl9.0-doc. Parsed by carta from the page's man source.