[Bug 91] String literals not always properly zero-terminated
gdc-bugzilla at gdcproject.org
gdc-bugzilla at gdcproject.org
Sun Jan 12 08:00:11 PST 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=91
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> 2014-01-12 16:00:11 GMT ---
http://dlang.org/arrays.html
"""
Since strings, however, are not 0 terminated in D, when transferring a pointer
to a string to C, add a terminating 0:
str ~= "\0";
or use the function std.string.toStringz.
"""
--
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the D.gnu
mailing list