/* A simple structure */ struct combo_t { int i; char *s; double lf; }; /* These are the arguments passed into the varargs-using routine. They are what va_arg should extract out. */ extern int Expected_int; extern double Expected_double; extern char *Expected_string; extern struct combo_t Expected_combo; /* Passed to variable() to identify type of next argument. */ typedef enum { PARAM_INT, PARAM_STRING, PARAM_COMBO, PARAM_DOUBLE, PARAM_END } param_type; #define DUMMY 89 /* Dummy first argument to variable()) */