2 !!DESCRIPTION!! variable argument lists
3 !!ORIGIN!! LCC 4.1 Testsuite
4 !!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
9 #ifndef NO_FUNCS_TAKE_STRUCTS
15 #ifdef NO_SLOPPY_STRUCT_INIT
19 #ifdef NO_SLOPPY_STRUCT_INIT
25 print(char *fmt, ...);
30 print("test %s\n", "2");
31 print("test %d%c", 3, '\n');
32 print("%s%s %w%c", "te", "st", 4, '\n');
34 print("%s%s %f%c", "te", "st", (signed long) 5, '\n');
36 print("%s%s %f%c", "te", "st", 5.0, '\n');
38 #ifndef NO_FUNCS_TAKE_STRUCTS
39 print("%b %b %b %b %b %b\n", x, x, x, x, x, x);
44 print(char *fmt, ...) {
52 #ifdef NO_FUNCS_TAKE_STRUCTS
60 printf("(%d %d %d %d)", x.a[0], x.a[1], x.a[2], x.a[3]);
65 /* printf("%c", va_arg(ap, char)); */
66 printf("%c", va_arg(ap, int));
69 printf("%d", va_arg(ap, int));
72 /* printf("%x", va_arg(ap, short)); */
73 printf("%x", va_arg(ap, int));
76 printf("%s", va_arg(ap, char *));
80 printf("%ld.000000", va_arg(ap, signed long));
82 printf("%f", va_arg(ap, double));