| 1 |
'\" |
| 2 |
'\" Copyright (c) 1989-1993 The Regents of the University of California. |
| 3 |
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc. |
| 4 |
'\" |
| 5 |
'\" See the file "license.terms" for information on usage and redistribution |
| 6 |
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 7 |
'\" |
| 8 |
.TH Tcl_CommandComplete 3 "" Tcl "Tcl Library Procedures" |
| 9 |
.so man.macros |
| 10 |
.BS |
| 11 |
.SH NAME |
| 12 |
Tcl_CommandComplete \- Check for unmatched braces in a Tcl command |
| 13 |
.SH SYNOPSIS |
| 14 |
.nf |
| 15 |
\fB#include <tcl.h>\fR |
| 16 |
.sp |
| 17 |
int |
| 18 |
\fBTcl_CommandComplete\fR(\fIcmd\fR) |
| 19 |
.SH ARGUMENTS |
| 20 |
.AS "const char" *cmd |
| 21 |
.AP "const char" *cmd in |
| 22 |
Command string to test for completeness. |
| 23 |
.BE |
| 24 |
|
| 25 |
.SH DESCRIPTION |
| 26 |
.PP |
| 27 |
\fBTcl_CommandComplete\fR takes a Tcl command string |
| 28 |
as argument and determines whether it contains one or more |
| 29 |
complete commands (i.e. there are no unclosed quotes, braces, |
| 30 |
brackets, or variable references). |
| 31 |
If the command string is complete then it returns 1; otherwise it returns 0. |
| 32 |
|
| 33 |
.SH KEYWORDS |
| 34 |
complete command, partial command |