Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
February 18, 2004 what happenned to "exit"? | ||||
---|---|---|---|---|
| ||||
int main ( char[][] args ) { exit(1); } Error: undefined identifier exit Return 1; from main() is ok, but what if I want to exit the program from an abort routine? |
February 18, 2004 Re: what happenned to "exit"? | ||||
---|---|---|---|---|
| ||||
Posted in reply to larry cowan | import std.c.stdlib; ( i think, one of those anyway ) Charlie "larry cowan" <larry_member@pathlink.com> wrote in message news:c0uaar$2cs1$1@digitaldaemon.com... > > int main ( char[][] args ) { > exit(1); > } > > Error: undefined identifier exit > > Return 1; from main() is ok, but what if I want to exit the program from an > abort routine? > > |
February 18, 2004 Re: what happenned to [exit()?] | ||||
---|---|---|---|---|
| ||||
Posted in reply to C | In article <c0ucp9$2gdf$1@digitaldaemon.com>, C says... > >import std.c.stdlib; import std.c.process; |
February 18, 2004 Re: what happenned to [exit()?] | ||||
---|---|---|---|---|
| ||||
Posted in reply to beltorak | Thanks. WTTW: Either works, but if both are used, they conflict on their definitions of exit(). In article <c0uehv$2j74$1@digitaldaemon.com>, beltorak says... > >In article <c0ucp9$2gdf$1@digitaldaemon.com>, C says... >> >>import std.c.stdlib; > >import std.c.process; > > |
Copyright © 1999-2021 by the D Language Foundation