The swprintf function is equivalent to the fwprintf function, except that the first argument specifies an array of wide characters instead of a stream. No more than n wide characters are written, including a terminating null wide character, which is always added (unless n is 0). See also fwprintf.