On Oct  3, 2000, Bernard Dautrevaux <[EMAIL PROTECTED]> wrote:

> Anyway, this test should be a standard C++ test, defining
> CXX_NEEDS_EXIT_DECL in config.h, so that I can test it in my own programs;
> for now I've always assumed "exit()" to be available after #including
> <stdlib.h> and if you're right I w'll get in trouble some day :-)

Well, maybe I'm just being too paranoid.  The C++ Standard requires
`#include <stdlib.h>' to work just like in C.  But what if some OS
didn't provide a declaration of exit(int) in stdlib.h, and the C++
compiler happens to just use the stdlib.h offered by the OS?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to