fromStringz for wide characters

John Burton via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 5 01:15:04 PDT 2017


std.string.fromStringz will create me a string from a null 
terminated array of characters. But I have a zero terminated 
array of "short"s (from a win32 api call) which I'd like to turn 
into a wstring. But there doesn't seem to be a function to do 
this.

Do I need to write my own, or am I missing something?


More information about the Digitalmars-d-learn mailing list