2 !!DESCRIPTION!! variable argument lists
3 !!ORIGIN!! LCC 4.1 Testsuite
4 !!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
10 #ifndef NO_FUNCS_TAKE_STRUCTS
16 #ifdef NO_SLOPPY_STRUCT_INIT
20 #ifdef NO_SLOPPY_STRUCT_INIT
26 print(char *fmt, ...);
31 print("test %s\n", "2");
32 print("test %d%c", 3, '\n');
33 print("%s%s %w%c", "te", "st", 4, '\n');
35 print("%s%s %f%c", "te", "st", (signed long) 5, '\n');
37 print("%s%s %f%c", "te", "st", 5.0, '\n');
39 #ifndef NO_FUNCS_TAKE_STRUCTS
40 print("%b %b %b %b %b %b\n", x, x, x, x, x, x);
45 print(char *fmt, ...) {
53 #ifdef NO_FUNCS_TAKE_STRUCTS
61 printf("(%d %d %d %d)", x.a[0], x.a[1], x.a[2], x.a[3]);
66 /* printf("%c", va_arg(ap, char)); */
67 printf("%c", va_arg(ap, int));
70 printf("%d", va_arg(ap, int));
73 /* printf("%x", va_arg(ap, short)); */
74 printf("%x", va_arg(ap, int));
77 printf("%s", va_arg(ap, char *));
81 printf("%ld.000000", va_arg(ap, signed long));
83 printf("%f", va_arg(ap, double));