0

Hi I want to use the equivalent of swprintf() for char16_t. I have code like that (1) which I want to use for char16_t (see 2) .

Which function something_like_swprintf() can I use for that?

1):

  wchar_t* str;
  str = new wchar_t* [55];
  swprintf(str, 55, L"This is my text %d.%d.%d.%d");

2):

  char16_t* str2;
  str2 = new wchar_t* [55];
  something_like_swprintf(str2, 55, u"This is my text %d.%d.%d.%d");
user3443063
  • 1,295
  • 4
  • 19
  • 30

0 Answers0