close program by code

FreeSlave via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 26 02:58:49 PDT 2014


On Thursday, 26 June 2014 at 09:05:23 UTC, pgtkda wrote:
> How can i close my application by code?

Do you mean exit status? Just call exit function from C library.

import std.c.stdlib;

void main()
{
     exit(0);
}


More information about the Digitalmars-d-learn mailing list