Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Compilation problems??

Re: Compilation problems??

From: Craig Miller <dcm_at_zilker.net.nospam>
Date: 1997/08/14
Message-ID: <33F37623.41C67EA6@zilker.net.nospam>#1/1

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US