how to terminate a program

Murilo murilomiranda92 at hotmail.com
Sun Sep 15 03:37:37 UTC 2019


On Saturday, 25 October 2008 at 01:41:09 UTC, dsimcha wrote:
> == Quote from james (james at google.com)'s article
>> how to terminate the program in the middle of execution, is 
>> there any command
> such as halt,exit? since i dont use exception for error 
> handling.
>
> Use C's.  It's in std.c.stdlib.  It's called exit, takes an int 
> and returns the exit code provided by the caller to the OS upon 
> termination.

Hi, I am trying it but my compiler does not find the std.c.stdlib 
module. I am using one of the latest versions. Has it been 
removed?


More information about the Digitalmars-d mailing list