Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 May 1997 02:01:16 -0700 (PDT)
From:      Chris Timmons <skynyrd@opus.cts.cwu.edu>
To:        "David S. Miller" <davem@jenolan.rutgers.edu>
Cc:        joerg_wunsch@uriah.heep.sax.de, hackers@FreeBSD.ORG, un_x@anchorage.net
Subject:   Re: bcc vs cc/gcc (float)
Message-ID:  <Pine.BSF.3.95.970531015756.1455A-100000@opus.cts.cwu.edu>
In-Reply-To: <199705310804.EAA00272@jenolan.caipgeneral>

next in thread | previous in thread | raw e-mail | index | archive | help

Apparantly ISO C allows you to declare with either 0 or 2 parameters (i.e.
no environment.)
 
(This according to Harbison/Steele 4th ed.)


On Sat, 31 May 1997, David S. Miller wrote:

>    Date: Sat, 31 May 1997 09:28:37 +0200
>    From: j@uriah.heep.sax.de (J Wunsch)
> 
>    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...
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970531015756.1455A-100000>