Alexandre Oliva <[EMAIL PROTECTED]> writes:
> On Dec 18, 2000, Pavel Roskin <[EMAIL PROTECTED]> wrote:
> 
> > #ifdef __cplusplus
> > #undef exit
> > #define exit(x) return (x)
> > #endif

That looks like a bad idea.  
 
> But what if a hand-coded test calls exit() from some function other
> than main()?

Yup.  Also, they should include <stdlib.h> if they want exit().

- Hari
-- 
Raja R Harinath ------------------------------ [EMAIL PROTECTED]
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash

Reply via email to