Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Compilation problems??
Alicia Carla Longstreet wrote:
>
> As for using a simple return rather than exit() this is foolish advice.
> exit() offers some excellent features, notably atexit() which allows the
> programmer to define one or more functions to called by exit(). You can
> specify up to 32 functions.
Alicia,
Using return from main is the same as using exit().
The C startup code calls main(), then if it returns, exit().
Craig
>
> --
> *********************************************************
> * Alicia Carla Longstreet carla_at_ici.net *
> * Supporter of the campaign against grumpiness on c.l.c *
> *********************************************************
> * Children, *
> * We spend two years teaching them to talk... *
> * and 20 years trying to get them to shut up! *
> *********************************************************
> The money spent on an abortion,
> as any woman may find out,
> can better be spent on other things,
> like taking the kids to an amusment park, or on vacation.
-- Craig Miller .... Cedar Park, TX .... programmer, homebrewer I do not speak for anyone besides myself. Remove the .nospam to contact me.Received on Thu Aug 14 1997 - 00:00:00 CDT