comparison tangotests/compile/d.d @ 172:68a7dd38c03c trunk

[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots. Reorganized the tangotests dir a bit.
author lindquist
date Tue, 06 May 2008 07:26:27 +0200
parents tangotests/d.d@1700239cab2e
children
comparison
equal deleted inserted replaced
171:95f07e3f8bb9 172:68a7dd38c03c
1 char* toStringz (char[] s)
2 {
3 if (s.ptr)
4 if (! (s.length && s[$-1] is 0))
5 s = s ~ '\0';
6 return s.ptr;
7 }
8