Re: Conformance to standards,using exit() or return from main() correctly

From: George Greer (greerga@circlemud.org)
Date: 01/07/01


On Sun, 7 Jan 2001, Peter Ajamian wrote:

>I have no arguments that using exit(1) will work in almost every
>concievable case, however the standard gives us an easy method to use
>that is guaranteed to work in every case, why not use it?

It's gratuitous and our current method is defined by the standard as being
acceptable already.

I'll be looking at the code sometime but not just putting EXIT_FAILURE in
there.

---
George Greer            | If it's about the CircleMUD mailing list,
greerga@circlemud.org   | mail owner-circle@post.queensu.ca instead.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/03/01 PST