Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> writes:
> I think all of the following codes work in the same way
> at least on Windows, where the codes are actually used.
> utf16[dstlen] = L'\0';
> utf16[dstlen] = '\0';
> utf16[dstlen] = 0;
> utf16[dstlen] = (WCHAR) 0;
The last one seems like the best choice, since it makes the intent visible.
Committed that way --- thanks for the suggestion!
regards, tom lane