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 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
Tcl_GetIndexFromObj()
PTC MKS Toolkit 10.4 Documentation Build 39.