SYNOPSIS
#include <tcl.h>
Tcl_WrongNumArgs(interp, objc, objv, message)
ARGUMENTS
- Tcl_Interp interp (in)
-
Interpreter in which error will be reported: error message gets stored in its result object.
- int objc (in)
-
Number of leading arguments from objv to include in error message.
- Tcl_Obj "*CONST objv[]" (in)
-
Arguments to command that had the wrong number of arguments.
- char *message (in)
-
Additional error information to print after leading arguments from objv. This typically gives the acceptable syntax of the command. This argument may be NULL.
DESCRIPTION
wrong # args: should be "foo fileName count"
If objc is 2, the result will be set to the following string:
wrong # args: should be "foo bar fileName count"
Objc is usually 1, but may be 2 or more for commands like string and the Tk widget commands, which use the first argument as a subcommand.
Some of the objects in the objv array may be abbreviations for
a subcommand. The command
wrong # args: should be "foo barfly fileName count"
PORTABILITY
Windows 2000. Windows XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
Tcl_GetIndexFromObj()
MKS Toolkit 9.3 Documentation Build 6.