On Thursday, 10 October 2019 at 19:21:06 UTC, Daniel Kozak wrote:
On Thursday, 10 October 2019 at 19:19:42 UTC, Daniel Kozak
wrote:
On Thursday, 10 October 2019 at 18:52:32 UTC, Jarek wrote:
On Monday, 23 September 2019 at 12:31:16 UTC, Adam D. Ruppe
wrote:
[...]
Hello,
thanks for reply.
This is my first dlang work:
import std.stdio;
import std.conv;
import core.sys.posix.dirent;
[...]
You should use fromStringZ:
https://dlang.org/phobos/std_string.html#.fromStringz
stdout.writeln("Subdir: ", ent.d_name.fromStringz);
One more time :)
stdout.writeln("Subdir: ", ent.d_name.ptr.fromStringz);