// Output Chinese
CHAR SZA [8]; Wchar Szw [8];
Sprintf (SZA, "% s", L "peace"); // garbled, four bytes Sprintf (SZA, "% s", "peace"); // Peace
Sprintf (SZA, "% s", L "peace"); // zero-byte sprintf (SZA, "% s", "peace"); // zero byte
SWPRINTF (SZW, L "% s", L "peace"); // Peace, four bytes SWPrintf (SZW, L "% s", "peace"); // Unable to output, four bytes, content ANSI code
SWPRINTF (SZW, L "% s", L "peace"); // cannot output, eight bytes, content is Unicode code SWPRINTF (SZW, L "% s", "peace"); // cannot be output, Eight bytes, the content is ansi code
WSPrintfa (SZA, "% s", L "peace"); // garbled, four bytes WSPrintfa (SZA, "% s", "peace"); // Peace
WSPrintfa (SZA, "% s", L "peace"); // Peace WSPrintfa (SZA, "% s", "peace"); // garbled, two bytes
WSPRINTFW (SZW, L "% s", L "peace"); // Peace, four bytes WSPrintfw (SZW, L "% s", "peace"); // Unable to output, four bytes, content ANSI code
WSPrintfW (SZW, L "% s", l "peace"); // cannot output, six bytes, content is Unicode code WSPrintfw (SZW, L "% s", "peace"); // Peace, eight Byte
// Output in English
CHAR SZA [8]; Wchar Szw [8];
Sprintf (SZA, "% S", L "Well"); // W, one byte sprintf (SZA, "% s", "well"); // Well, four bytes
Sprintf (SZA, "% S", L "Well"); // Well, four bytes Sprintf (SZA, "% s", "well"); // zero byte
SWPRINTF (SZW, L "% S", L "Well"); // Well, eight bytes SWPRINTF (SZW, L "% s", "well"); // garbled, four bytes
SWPRINTF (SZW, L "% S", L "Well"); // W, two bytes SWPRINTF (SZW, L "% s", "Well"); // Well, eight bytes
WSPRINTFA (SZA, "% s", L "Well"); // W, one byte WSPrintfa (SZA, "% s", "well"); // Well, four bytes
WSPrintfa (SZA, "% s", L "Well"); // Well, four bytes WSPrintfa (SZA, "% s", "well"); // garbled, four bytes WSPrintfw (SZW, L "% s", l "well"); // Well, eight bytes WSPrintfw (SZW, L "% s", "well"); // garbled, four bytes, content is ansi code
WSPRINTFW (SZW, L "% s", L "Well"); // W, two bytes WSPrintfw (SZW, L "% s", "Well"); // Well, eight bytes