where is the memory corruption?

Paul Backus snarwin at gmail.com
Wed Dec 9 21:28:04 UTC 2020


On Wednesday, 9 December 2020 at 21:21:58 UTC, ag0aep6g wrote:
>
> D's wchar is not C's wchar_t. D's wchar is 16 bits wide. The 
> width of C's wchar_t is implementation-defined. In your case 
> it's probably 32 bits.

In D, C's wchar_t is available as `core.stdc.stddef.wchar_t`.

http://dpldocs.info/experimental-docs/core.stdc.stddef.wchar_t.1.html


More information about the Digitalmars-d-learn mailing list