Files
ldc/tangotests/compile/d.d
2008-05-06 07:26:27 +02:00

9 lines
151 B
D

char* toStringz (char[] s)
{
if (s.ptr)
if (! (s.length && s[$-1] is 0))
s = s ~ '\0';
return s.ptr;
}