Skip to main content

setarg

warning

This function starts with a lowercase letter.

Description

Set an argument that was passed to a function.

NameDescription
argThe argument sequence number. Use 0 for the first argument.
indexThe index (if the argument is an array) (optional=0)
valueThe value to set the argument to.

Returns

1 on success and 0 if the argument or the index are invalid.

  • getarg: Retrieve an argument from a variable argument list.
  • numargs: Return the number of arguments.