D | printf-tests.c | 34 static void failmsg(int serial, char *fmt, ...) { in failmsg() argument 37 printf("test %d failed: ", serial); in failmsg() 51 static int test(int serial, char *expect, char *fmt, ...) { in test() argument 117 failmsg(serial, "buffer overflow"); in test() 122 failmsg(serial, "expected \"%s\" (%d), got \"%s\" (%d)", in test() 128 failmsg(serial, "expected \"%s\", got \"%s\"", expect, buf); in test() 134 failmsg(serial, "asprintf return %d sprintf return %d\n", an, n); in test() 139 failmsg(serial, "sprintf return %s asprintf return %s\n", buf, abuf); in test() 148 static void failmsgw(int serial, wchar_t *fmt, ...) { in failmsgw() argument 151 printf("test %d failed: ", serial); in failmsgw() [all …]
|