Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 May 1997 19:05:01 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        davem@jenolan.rutgers.edu, joerg_wunsch@uriah.heep.sax.de
Cc:        hackers@FreeBSD.ORG, un_x@anchorage.net
Subject:   Re: bcc vs cc/gcc (float)
Message-ID:  <199705310905.TAA08013@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>   The only valid declarations of main() are:
>
>   int main(int, char **)
>   int main(void)
>
>I thought ANSI C allowed
>
>int main(int argc, char **argv, char **envp)
>
>I could be mistaken...

I thought that it allowed the implementation to allow that.
I was mistaken.

POSIX.1 specifies that exec shall use the 2-arg form.  I
think POSIX is an extension of ANSI here, so the 0-arg
form is still allowed, but POSIX doesn't seem to say this
explicitly.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705310905.TAA08013>