httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: main always returns an int
Date Mon, 21 Sep 1998 02:21:00 GMT
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"
> 


Mime
View raw message