| Rev | Line | |
|---|
| [25] | 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 | '\" RCS: @(#) $Id: CmdCmplt.3,v 1.4 2004/10/07 15:15:35 dkf Exp $ |
|---|
| 9 | '\" |
|---|
| 10 | .so man.macros |
|---|
| 11 | .TH Tcl_CommandComplete 3 "" Tcl "Tcl Library Procedures" |
|---|
| 12 | .BS |
|---|
| 13 | .SH NAME |
|---|
| 14 | Tcl_CommandComplete \- Check for unmatched braces in a Tcl command |
|---|
| 15 | .SH SYNOPSIS |
|---|
| 16 | .nf |
|---|
| 17 | \fB#include <tcl.h>\fR |
|---|
| 18 | .sp |
|---|
| 19 | int |
|---|
| 20 | \fBTcl_CommandComplete\fR(\fIcmd\fR) |
|---|
| 21 | .SH ARGUMENTS |
|---|
| 22 | .AS "const char" *cmd |
|---|
| 23 | .AP "const char" *cmd in |
|---|
| 24 | Command string to test for completeness. |
|---|
| 25 | .BE |
|---|
| 26 | |
|---|
| 27 | .SH DESCRIPTION |
|---|
| 28 | .PP |
|---|
| 29 | \fBTcl_CommandComplete\fR takes a Tcl command string |
|---|
| 30 | as argument and determines whether it contains one or more |
|---|
| 31 | complete commands (i.e. there are no unclosed quotes, braces, |
|---|
| 32 | brackets, or variable references). |
|---|
| 33 | If the command string is complete then it returns 1; otherwise it returns 0. |
|---|
| 34 | |
|---|
| 35 | .SH KEYWORDS |
|---|
| 36 | complete command, partial command |
|---|
Note: See
TracBrowser
for help on using the repository browser.