Re: the mystery of <ctrl-d>



In article <8IadnWyYCcMrRajbnZ2dnUVZ8tvinZ2d@xxxxxx>,
Richard Heathfield <rjh@xxxxxxxxxxxxxxx> wrote:

In fact, I can't think of any use whatsoever for exit().

terminating the program somewhere other then main().

And I can't think of any use whatsoever for that, either.

If C had a reasonable exception mechanism I might agree, but writing
all your functions to return and check errors is too tedious in cases
where there's nothing sensible to do about the error other than exit.

-- Richard

--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
.



Relevant Pages

  • Re: Program that makes a list of words.
    ... If you were writing such a program yourself in the C language, ... as one hit for question and one hit for the hyphen, ... Richard Heathfield ...
    (comp.lang.c)
  • [OT] Re: RAII and exceptions
    ... Richard Heathfield wrote... ... Not a complaint I'm accustomed to hearing... ... I'm semi-serious about writing the book; I do have a fairly detailed ... doing two full-time jobs at present (one paid, one voluntary), hence my ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Bug in list of matrics represended as arays.....
    ... Richard Heathfield wrote: ... He was writing a program that had #include "stdafx.h" in it ...
    (comp.lang.c)
  • Re: custom header files
    ... Richard Heathfield wrote: ... Terminology! ... > the writing, so the first cut of the .h file probably won't fully ...
    (comp.programming)
  • Re: Is writing C code very simple?
    ... lovecreatesbeauty said: ... > `Writing C code is very simple', one guy related to my work said. ... But nobody said it was easy. ... Richard Heathfield ...
    (comp.lang.c)