Mail Archives: djgpp/1996/09/15/12:48:52
> > There's nothing wrong with using exit to terminate a program, even if you're
> > in main.
>
> Well, sure there's nothing wrong with it... But it performs frivolous
> fflush's and other things when all you want to do is end the program right
> there. Why call another function when all you want is to end the program?
> ;)
When you return from main, the runtime calls exit() anyway. If you
want to leave the program *without* doing cleanup, use _exit()
explicitely.
- Raw text -