mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 14:53:14 +01:00
Initial commit after moving to Tango instead of Phobos. Lots of bugfixes... This build is not suitable for most things.
9 lines
151 B
D
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;
|
|
}
|
|
|