D2 toStringz Return Type

ore-sama spam at here.lot
Sun Nov 9 01:28:01 PST 2008


Andrei Alexandrescu Wrote:

> > that's because they get char buffer, not sz, so they can't determine
> > end of buffer scanning for null (strcat does, but it's still buffer).
> > toStringz has nothing to do with these functions.
> 
> Good point.

But what can really simplify interoperability is modification of cat and idup operators so that they allocate an extra char and write null to it, so toStringz can be replaced with idup ar avoided completely.



More information about the Digitalmars-d mailing list