Hangs on toStringZ()

Nemanja Boric via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 28 03:21:34 PST 2016


On Tuesday, 27 December 2016 at 17:27:14 UTC, unDEFER wrote:
> Hello I have very simple line with exec-command:
>
> execl("/bin/bash".toStringz(), "/bin/bash".toStringz(), 
> "-c".toStringz(), command.toStringz(), null);
>
> [...]

Just a note here, string literals are already 0 terminated, so 
you don't need `toStringz` there.


More information about the Digitalmars-d mailing list