num_args()

Returns the number of arguments passed into a function.

Syntax:

num_args();

Example:
defun test(a, b, c)
{
    fputs(stderr, num_args());
}
test(10);        // should print out 1
test(10, 15);    // should print out 2

Where Used:

Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources