[Issue 1965] std.string.toStringz checks too stringent
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 22 23:24:17 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1965
bugzilla at digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #3 from bugzilla at digitalmars.com 2008-04-23 01:24 -------
If strings with embedded zeros are passed to toStringz, then the function
should fail as the result makes no sense as a C 0-terminated string. The
function behaves correctly (although I will update the doc on this point).
--
More information about the D.gnu
mailing list