CmdCmplt(3tcl)

CmdCmplt3tcl

Check for unmatched braces in a tcl command

Usage

#include <tcl.h>

int
Tcl_CommandComplete(cmd)

    


    

Arguments

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

10 releases since Debian 1.1 (Buzz); the text changed 3 times.

  1. 1.1–2.1
  2. 2.2
  3. 3.0–4.0
  4. 5.0

From tcl8.3-doc 8.3.5-13 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.