Search code examples
cgccunicode

vsnwprintf alternative on linux


What is the direct alternative for the vsnwprintf function on linux machines and what headers should be included to use it?

Thanks for any advice


Solution

  • It depends on what vsnwprintf() (sic) does and what is its parameter list.

    The C99 Standard describes vswprintf() (in section 7.24.2.7). To use it you need to #include <stdarg.h> and <wchar.h>. The implementation should be in the Standard library.