You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jim Jagielski <ji...@jaguNET.com> on 1998/09/21 04:16:53 UTC

main always returns an int

in STATUS it says:

Needs patch:

    * TestCompile creates bogus code with "void main(...".  main 
      always returns an int.

Is the strictly true? I don't have my copy of the ANSI spec, but K&R
strongly implies that main does not necessarily return any value
at all.
-- 
===========================================================================
   Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
            "That's no ordinary rabbit... that's the most foul,
            cruel and bad-tempered rodent you ever laid eyes on"

Re: main always returns an int

Posted by Marc Slemko <ma...@worldgate.com>.
On Sun, 20 Sep 1998, Jim Jagielski wrote:

> in STATUS it says:
> 
> Needs patch:
> 
>     * TestCompile creates bogus code with "void main(...".  main 
>       always returns an int.
> 
> Is the strictly true? I don't have my copy of the ANSI spec, but K&R

Yes.  Unless you aren't in a "hosted environment" or whatever they call
it.

> strongly implies that main does not necessarily return any value
> at all.
> -- 
> ===========================================================================
>    Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
>             "That's no ordinary rabbit... that's the most foul,
>             cruel and bad-tempered rodent you ever laid eyes on"
>