Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This compliant solution correctly calculates the number of bytes required to contain a copy of the wide string, including the terminating null wide character:

...