// Query the count required.
va_list ap_copy;
va_copy(ap_copy, ap);
- int count = _vsnprintf( NULL, 0, format, ap_copy );
+ int count = vsnprintf( NULL, 0, format, ap_copy );
va_end(ap_copy);
if (count < 0)
return count;
return -1;
// If we haven't used exactly what was required, something is wrong.
// Maybe bug in vsnprintf. Report the error and return.
- if (_vsnprintf(p, buffer_size, format, ap) != count) {
+ if (vsnprintf(p, buffer_size, format, ap) != count) {
free(p);
return -1;
}
// iter_type put(iter_type s, ios_base& iob, char_type fill, double v) const;
-// XFAIL: LIBCXX-WINDOWS-FIXME
+// FIXME: The printf functions in Microsoft's CRT have a couple quirks in
+// corner cases, failing this test.
+// XFAIL: msvc
+
// XFAIL: LIBCXX-AIX-FIXME
#include <locale>