Lines Matching refs:fmt

35 static void failmsg(int serial, char *fmt, ...) {  in failmsg()  argument
37 va_start(ap, fmt); in failmsg()
39 vprintf(fmt, ap); in failmsg()
52 static int test(int serial, char *expect, char *fmt, ...) { in test() argument
55 va_start(ap, fmt); in test()
74 switch (fmt[strlen(fmt)-1]) { in test()
86 star = strchr(fmt, '*'); in test()
87 long_double = strchr(fmt, 'L'); in test()
95 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, iv1, iv2, ldv); in test()
97 an = asprintf(&abuf, fmt, iv1, iv2, ldv); in test()
103 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, iv1, iv2, dv); in test()
105 an = asprintf(&abuf, fmt, iv1, iv2, dv); in test()
113 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, iv, ldv); in test()
115 an = asprintf(&abuf, fmt, iv, ldv); in test()
121 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, iv, dv); in test()
123 an = asprintf(&abuf, fmt, iv, dv); in test()
131 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, ldv); in test()
133 an = asprintf(&abuf, fmt, ldv); in test()
139 n = snprintf(buf, PRINTF_BUF_SIZE, fmt, dv); in test()
141 an = asprintf(&abuf, fmt, dv); in test()
148 n = vsnprintf(buf, PRINTF_BUF_SIZE, fmt, ap); in test()
150 an = vasprintf(&abuf, fmt, aap); in test()
191 static void failmsgw(int serial, wchar_t *fmt, ...) { in failmsgw() argument
193 va_start(ap, fmt); in failmsgw()
197 vswprintf(f_wbuf, PRINTF_BUF_SIZE, fmt, ap); in failmsgw()
203 static int testw(int serial, wchar_t *expect, wchar_t *fmt, ...) { in testw() argument
206 va_start(ap, fmt); in testw()
221 switch (fmt[wcslen(fmt)-1]) { in testw()
233 star = wcschr(fmt, '*'); in testw()
239 n = swprintf(wbuf, PRINTF_BUF_SIZE, fmt, iv1, iv2, dv); in testw()
243 n = swprintf(wbuf, PRINTF_BUF_SIZE, fmt, iv, dv); in testw()
247 n = swprintf(wbuf, PRINTF_BUF_SIZE, fmt, dv); in testw()
252 n = vswprintf(wbuf, PRINTF_BUF_SIZE, fmt, ap); in testw()