Using a Varying Number of Parameters

Some C functions (for example printf) accept a variable number of parameters. To call such a function from another language, you need to suppress the type-checking that normally forces a call to be made with a fixed number of parameters. In BASIC, you can remove this type-checking by omitting a parameter list from the DECLARE statement. In FORTRAN or Pascal, you can call routines with a variable number of parameters by including the VARYING attribute in your interface to the routine, along with the C attribute. You must use the C attribute because a variable number of parameters is feasible only with the C calling convention. In C++, functions that accept a variable number of parameters automatically use the C calling convention.