Numargs

numargs

Description:
Function numargs get the number of arguments passed to a function.
This function name starts with a lowercase letter.


Parameters:
(This function has no parameters)


Return Values:
The number of arguments passed.


Examples:
SomeFunction(...)
{
    printf("numargs(): %i", numargs());
}
 
public OnFilterScriptInit()
{
    SomeFunction(1, 2, 3);
}
 
// Output: "numargs(): 3"
// Because 3 parameters (1, 2, 3) were passed.


Related Functions
The following functions may be useful, as they are related to this function in one way or another.
  • getarg: Retrieve an argument from a variable argument list.
  • setarg: Set an argument.