9 int first(char *buf
, char *fmt
, ...)
17 for (pos
= 0; fmt
[pos
]; pos
++)
20 number
= va_arg(args
, int);
21 sprintf(bp
, "%d", number
);
32 struct spurious
second(char *buf
,char *fmt
, ...)
36 struct spurious dummy
;
40 for (pos
= 0; fmt
[pos
]; pos
++)
43 number
= va_arg(args
, int);
44 sprintf(bp
, "%d", number
);
57 char buf1
[100], buf2
[100];
58 first(buf1
, "i i ", 5, 20);
59 second(buf2
, "i i ", 5, 20);
60 if (strcmp ("5 20 ", buf1
) || strcmp ("5 20 ", buf2
))