boost_no_swprintf.ipp 605 B

12345678910111213141516171819202122232425262728293031
  1. // (C) Copyright John Maddock 2001.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for most recent version.
  6. // MACRO: BOOST_NO_SWPRINTF
  7. // TITLE: swprintf
  8. // DESCRIPTION: The platform does not have a conforming version of swprintf.
  9. #include <wchar.h>
  10. #include <stdio.h>
  11. namespace boost_no_swprintf{
  12. int test()
  13. {
  14. wchar_t buf[10];
  15. swprintf(buf, 10, L"%d", 10);
  16. return 0;
  17. }
  18. }