[Issue 6232] An idea for std.string.toStringz docs

2016-10-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6232 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 6232] An idea for std.string.toStringz docs

2011-07-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6232 --- Comment #6 from bearophile_h...@eml.cc 2011-07-01 07:19:12 PDT --- (In reply to comment #5) > 1. It only helps if you're actually keeping zero-terminated strings around, You just call the function nested: strlen(toStringz2(s2)) Hiding Cc

[Issue 6232] An idea for std.string.toStringz docs

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6232 --- Comment #5 from Jonathan M Davis 2011-06-30 19:30:18 PDT --- 1. It only helps if you're actually keeping zero-terminated strings around, which is likely an atypical use case. Usually, you pass it to the C function and forget about it. 2.

[Issue 6232] An idea for std.string.toStringz docs

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6232 --- Comment #4 from bearophile_h...@eml.cc 2011-06-30 18:57:48 PDT --- (In reply to comment #3) > Your suggestion doesn't help at all with remembering to use zero-terminated > strings when calling C code. > Are your > suggestion only helps as f

[Issue 6232] An idea for std.string.toStringz docs

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6232 --- Comment #3 from Jonathan M Davis 2011-06-30 18:28:29 PDT --- Your suggestion doesn't help at all with remembering to use zero-terminated strings when calling C code. For that you have to remember that you need to do that and that toStringz