Used by makeWindowsString and WCharzBuffer
Append a zero terminator to the string.
Converts newlines from \n to \r\n.
See Implementation
Moved from simpledisplay.d to core.d in March 2023 (dub v11.0).
Used by makeWindowsString and WCharzBuffer