next up previous contents index
Next: Unused arguments Up: Module's header Previous: Optional arguments   Contents   Index


Variable arguments


...- >C_id

defines variable arguments with input values. C_id is a C variable of type pointer to a scalar (e.g. char *), in this case its successive values are defined in the command line by writting the numbers (or characters) on the terminal, or a C variable of MegaWave2 type (e.g. Cmovie), in this case its successive values are given by writting the file names on the terminal. The module function is call as many time as the number of variable parameters given in the command line. If no variable parameters are given, the module function is called only once with C_id = NULL.


...- >C_id [Min,Max]

defines variable arguments with input values and with interval checking (an error is send if one input value does not fit into the given interval [Min,Max]). MegaWave2 types are not allowed. Min and Max must be constant of same type than C_id with Max > Min.


...< -C_id

defines variable arguments with output values. C_id is a C variable of MegaWave2 type only (e.g. Cmovie): its successive values will be put in the files whose names are written on the terminal. The module function is call as many time as the number of variable parameters given in the command line. If no variable parameters are given, the module function is called only once with C_id = NULL.

Restriction: C_id cannot be a function (return value of the module), whereas this is allowed with needed arguments (see section 4.3).


next up previous contents index
Next: Unused arguments Up: Module's header Previous: Optional arguments   Contents   Index
mw 2004-05-05